[JumpThreading] Fix opcode bonus in getJumpThreadDuplicationCost()
[oota-llvm.git] / test / Transforms / DeadArgElim / keepalive.ll
index b66df792ca84d4e2bb39a5d80ea8cd7c3b535ee1..d8a09933dcf9387ca3d239bbd1abb4a724931d19 100644 (file)
@@ -31,14 +31,14 @@ define void @caller() {
 ; We can't remove 'this' here, as that would put argmem in ecx instead of
 ; memory.
 define internal x86_thiscallcc i32 @unused_this(i32* %this, i32* inalloca %argmem) {
-       %v = load i32* %argmem
+       %v = load i32, i32* %argmem
        ret i32 %v
 }
 ; CHECK-LABEL: define internal x86_thiscallcc i32 @unused_this(i32* %this, i32* inalloca %argmem)
 
 define i32 @caller2() {
        %t = alloca i32
-       %m = alloca i32, inalloca
+       %m = alloca inalloca i32
        store i32 42, i32* %m
        %v = call x86_thiscallcc i32 @unused_this(i32* %t, i32* inalloca %m)
        ret i32 %v