1 ; RUN: opt < %s -basicaa -dse -S | FileCheck %s
3 target datalayout = "e-p:64:64:64"
9 define void @test(i32* %Q, i32* %P) {
10 %DEAD = load i32* %Q ; <i32> [#uses=1]
11 store i32 %DEAD, i32* %P
19 ; CHECK-NEXT: ret void
20 define void @test2({i32, i32}* %P) {
21 %Q = getelementptr {i32, i32} *%P, i32 0, i32 1
30 define void @test4() {
31 %m = call i8* @malloc(i64 24)
33 %m1 = getelementptr i8* %m, i64 1
35 call void @free(i8* %m)
39 declare void @free(i8*)
40 declare i8* @malloc(i64)