comparison test/Transforms/DeadArgElim/deadexternal.ll @ 95:afa8332a0e37 LLVM3.8

LLVM 3.8
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Tue, 13 Oct 2015 17:48:58 +0900
parents 54457678186b
children 1172e4bd9c6f
comparison
equal deleted inserted replaced
84:f3e34b893a5f 95:afa8332a0e37
29 29
30 define void @h() { 30 define void @h() {
31 entry: 31 entry:
32 %i = alloca i32, align 4 32 %i = alloca i32, align 4
33 store volatile i32 10, i32* %i, align 4 33 store volatile i32 10, i32* %i, align 4
34 ; CHECK: %tmp = load volatile i32* %i, align 4 34 ; CHECK: %tmp = load volatile i32, i32* %i, align 4
35 ; CHECK-NEXT: call void @f(i32 undef) 35 ; CHECK-NEXT: call void @f(i32 undef)
36 %tmp = load volatile i32* %i, align 4 36 %tmp = load volatile i32, i32* %i, align 4
37 call void @f(i32 %tmp) 37 call void @f(i32 %tmp)
38 ret void 38 ret void
39 } 39 }
40 40
41 ; Check that callers are not transformed for weak definitions. 41 ; Check that callers are not transformed for weak definitions.