diff options
author | Pirama Arumuga Nainar <pirama@google.com> | 2015-04-10 22:08:18 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-04-10 22:08:18 +0000 |
commit | 13a7db5b9c4f5e543d037be68ec3428216bfd550 (patch) | |
tree | 1b2c9792582e12f5af0b1512e3094425f0dc0df9 /test/Transforms/LoopUnroll/scevunroll.ll | |
parent | 0eb46f5d1e06a4284663d636a74b06adc3a161d7 (diff) | |
parent | 31195f0bdca6ee2a5e72d07edf13e1d81206d949 (diff) | |
download | external_llvm-13a7db5b9c4f5e543d037be68ec3428216bfd550.zip external_llvm-13a7db5b9c4f5e543d037be68ec3428216bfd550.tar.gz external_llvm-13a7db5b9c4f5e543d037be68ec3428216bfd550.tar.bz2 |
am 31195f0b: Merge "Update aosp/master llvm for rebase to r233350"
* commit '31195f0bdca6ee2a5e72d07edf13e1d81206d949':
Update aosp/master llvm for rebase to r233350
Diffstat (limited to 'test/Transforms/LoopUnroll/scevunroll.ll')
-rw-r--r-- | test/Transforms/LoopUnroll/scevunroll.ll | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/Transforms/LoopUnroll/scevunroll.ll b/test/Transforms/LoopUnroll/scevunroll.ll index 20161d7..a5c9a6e 100644 --- a/test/Transforms/LoopUnroll/scevunroll.ll +++ b/test/Transforms/LoopUnroll/scevunroll.ll @@ -19,8 +19,8 @@ while.body: %iv = phi i64 [ 10, %entry ], [ %iv.next, %while.body ] %sum = phi i32 [ 0, %entry ], [ %sum.next, %while.body ] %iv.next = add i64 %iv, -1 - %adr = getelementptr inbounds i32* %base, i64 %iv.next - %tmp = load i32* %adr, align 8 + %adr = getelementptr inbounds i32, i32* %base, i64 %iv.next + %tmp = load i32, i32* %adr, align 8 %sum.next = add i32 %sum, %tmp %iv.narrow = trunc i64 %iv.next to i32 %cmp.i65 = icmp sgt i32 %iv.narrow, 0 @@ -46,8 +46,8 @@ entry: loop: %iv = phi i64 [ 0, %entry ], [ %inc, %tail ] %s = phi i64 [ 0, %entry ], [ %s.next, %tail ] - %adr = getelementptr i64* %base, i64 %iv - %val = load i64* %adr + %adr = getelementptr i64, i64* %base, i64 %iv + %val = load i64, i64* %adr %s.next = add i64 %s, %val %inc = add i64 %iv, 1 %cmp = icmp ne i64 %inc, 4 @@ -67,8 +67,8 @@ exit2: ; SCEV properly unrolls multi-exit loops. ; ; CHECK-LABEL: @multiExit( -; CHECK: getelementptr i32* %base, i32 10 -; CHECK-NEXT: load i32* +; CHECK: getelementptr i32, i32* %base, i32 10 +; CHECK-NEXT: load i32, i32* ; CHECK: br i1 false, label %l2.10, label %exit1 ; CHECK: l2.10: ; CHECK-NOT: br @@ -81,8 +81,8 @@ l1: %iv2 = phi i32 [ 0, %entry ], [ %inc2, %l2 ] %inc1 = add i32 %iv1, 1 %inc2 = add i32 %iv2, 1 - %adr = getelementptr i32* %base, i32 %iv1 - %val = load i32* %adr + %adr = getelementptr i32, i32* %base, i32 %iv1 + %val = load i32, i32* %adr %cmp1 = icmp slt i32 %iv1, 5 br i1 %cmp1, label %l2, label %exit1 l2: @@ -112,8 +112,8 @@ l1: %iv2 = phi i32 [ 0, %entry ], [ %inc2, %l3 ] %inc1 = add i32 %iv1, 1 %inc2 = add i32 %iv2, 1 - %adr = getelementptr i32* %base, i32 %iv1 - %val = load i32* %adr + %adr = getelementptr i32, i32* %base, i32 %iv1 + %val = load i32, i32* %adr %cmp1 = icmp slt i32 %iv1, 5 br i1 %cmp1, label %l2, label %exit1 l2: |