diff options
Diffstat (limited to 'test/Transforms/ArgumentPromotion/inalloca.ll')
-rw-r--r-- | test/Transforms/ArgumentPromotion/inalloca.ll | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/Transforms/ArgumentPromotion/inalloca.ll b/test/Transforms/ArgumentPromotion/inalloca.ll index 089a78f..80bd6fd 100644 --- a/test/Transforms/ArgumentPromotion/inalloca.ll +++ b/test/Transforms/ArgumentPromotion/inalloca.ll @@ -7,10 +7,10 @@ target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:1 ; Argpromote + scalarrepl should change this to passing the two integers by value. define internal i32 @f(%struct.ss* inalloca %s) { entry: - %f0 = getelementptr %struct.ss* %s, i32 0, i32 0 - %f1 = getelementptr %struct.ss* %s, i32 0, i32 1 - %a = load i32* %f0, align 4 - %b = load i32* %f1, align 4 + %f0 = getelementptr %struct.ss, %struct.ss* %s, i32 0, i32 0 + %f1 = getelementptr %struct.ss, %struct.ss* %s, i32 0, i32 1 + %a = load i32, i32* %f0, align 4 + %b = load i32, i32* %f1, align 4 %r = add i32 %a, %b ret i32 %r } @@ -21,8 +21,8 @@ entry: define i32 @main() { entry: %S = alloca inalloca %struct.ss - %f0 = getelementptr %struct.ss* %S, i32 0, i32 0 - %f1 = getelementptr %struct.ss* %S, i32 0, i32 1 + %f0 = getelementptr %struct.ss, %struct.ss* %S, i32 0, i32 0 + %f1 = getelementptr %struct.ss, %struct.ss* %S, i32 0, i32 1 store i32 1, i32* %f0, align 4 store i32 2, i32* %f1, align 4 %r = call i32 @f(%struct.ss* inalloca %S) |