diff options
author | Pirama Arumuga Nainar <pirama@google.com> | 2015-04-10 21:22:52 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-04-10 21:23:04 +0000 |
commit | 31195f0bdca6ee2a5e72d07edf13e1d81206d949 (patch) | |
tree | 1b2c9792582e12f5af0b1512e3094425f0dc0df9 /test/Analysis/ScalarEvolution/nsw-offset-assume.ll | |
parent | c75239e6119d0f9a74c57099d91cbc9bde56bf33 (diff) | |
parent | 4c5e43da7792f75567b693105cc53e3f1992ad98 (diff) | |
download | external_llvm-31195f0bdca6ee2a5e72d07edf13e1d81206d949.zip external_llvm-31195f0bdca6ee2a5e72d07edf13e1d81206d949.tar.gz external_llvm-31195f0bdca6ee2a5e72d07edf13e1d81206d949.tar.bz2 |
Merge "Update aosp/master llvm for rebase to r233350"
Diffstat (limited to 'test/Analysis/ScalarEvolution/nsw-offset-assume.ll')
-rw-r--r-- | test/Analysis/ScalarEvolution/nsw-offset-assume.ll | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/test/Analysis/ScalarEvolution/nsw-offset-assume.ll b/test/Analysis/ScalarEvolution/nsw-offset-assume.ll index 29cf658..bef1070 100644 --- a/test/Analysis/ScalarEvolution/nsw-offset-assume.ll +++ b/test/Analysis/ScalarEvolution/nsw-offset-assume.ll @@ -24,23 +24,23 @@ bb: ; preds = %bb.nph, %bb1 ; CHECK: --> {0,+,2}<nuw><nsw><%bb> %1 = sext i32 %i.01 to i64 ; <i64> [#uses=1] -; CHECK: %2 = getelementptr inbounds double* %d, i64 %1 +; CHECK: %2 = getelementptr inbounds double, double* %d, i64 %1 ; CHECK: --> {%d,+,16}<nsw><%bb> - %2 = getelementptr inbounds double* %d, i64 %1 ; <double*> [#uses=1] + %2 = getelementptr inbounds double, double* %d, i64 %1 ; <double*> [#uses=1] - %3 = load double* %2, align 8 ; <double> [#uses=1] + %3 = load double, double* %2, align 8 ; <double> [#uses=1] %4 = sext i32 %i.01 to i64 ; <i64> [#uses=1] - %5 = getelementptr inbounds double* %q, i64 %4 ; <double*> [#uses=1] - %6 = load double* %5, align 8 ; <double> [#uses=1] + %5 = getelementptr inbounds double, double* %q, i64 %4 ; <double*> [#uses=1] + %6 = load double, double* %5, align 8 ; <double> [#uses=1] %7 = or i32 %i.01, 1 ; <i32> [#uses=1] ; CHECK: %8 = sext i32 %7 to i64 ; CHECK: --> {1,+,2}<nuw><nsw><%bb> %8 = sext i32 %7 to i64 ; <i64> [#uses=1] -; CHECK: %9 = getelementptr inbounds double* %q, i64 %8 +; CHECK: %9 = getelementptr inbounds double, double* %q, i64 %8 ; CHECK: {(8 + %q),+,16}<nsw><%bb> - %9 = getelementptr inbounds double* %q, i64 %8 ; <double*> [#uses=1] + %9 = getelementptr inbounds double, double* %q, i64 %8 ; <double*> [#uses=1] ; Artificially repeat the above three instructions, this time using ; add nsw instead of or. @@ -50,16 +50,16 @@ bb: ; preds = %bb.nph, %bb1 ; CHECK: --> {1,+,2}<nuw><nsw><%bb> %t8 = sext i32 %t7 to i64 ; <i64> [#uses=1] -; CHECK: %t9 = getelementptr inbounds double* %q, i64 %t8 +; CHECK: %t9 = getelementptr inbounds double, double* %q, i64 %t8 ; CHECK: {(8 + %q),+,16}<nsw><%bb> - %t9 = getelementptr inbounds double* %q, i64 %t8 ; <double*> [#uses=1] + %t9 = getelementptr inbounds double, double* %q, i64 %t8 ; <double*> [#uses=1] - %10 = load double* %9, align 8 ; <double> [#uses=1] + %10 = load double, double* %9, align 8 ; <double> [#uses=1] %11 = fadd double %6, %10 ; <double> [#uses=1] %12 = fadd double %11, 3.200000e+00 ; <double> [#uses=1] %13 = fmul double %3, %12 ; <double> [#uses=1] %14 = sext i32 %i.01 to i64 ; <i64> [#uses=1] - %15 = getelementptr inbounds double* %d, i64 %14 ; <double*> [#uses=1] + %15 = getelementptr inbounds double, double* %d, i64 %14 ; <double*> [#uses=1] store double %13, double* %15, align 8 %16 = add nsw i32 %i.01, 2 ; <i32> [#uses=2] br label %bb1 |