diff options
author | Stephen Hines <srhines@google.com> | 2014-07-21 00:45:20 -0700 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2014-07-25 00:48:57 -0700 |
commit | cd81d94322a39503e4a3e87b6ee03d4fcb3465fb (patch) | |
tree | 81b7dd2bb4370a392f31d332a566c903b5744764 /test/Transforms/Reassociate/2005-09-01-ArrayOutOfBounds.ll | |
parent | 0c5f13c0c4499eaf42ab5e9e2ceabd4e20e36861 (diff) | |
download | external_llvm-cd81d94322a39503e4a3e87b6ee03d4fcb3465fb.zip external_llvm-cd81d94322a39503e4a3e87b6ee03d4fcb3465fb.tar.gz external_llvm-cd81d94322a39503e4a3e87b6ee03d4fcb3465fb.tar.bz2 |
Update LLVM for rebase to r212749.
Includes a cherry-pick of:
r212948 - fixes a small issue with atomic calls
Change-Id: Ib97bd980b59f18142a69506400911a6009d9df18
Diffstat (limited to 'test/Transforms/Reassociate/2005-09-01-ArrayOutOfBounds.ll')
-rw-r--r-- | test/Transforms/Reassociate/2005-09-01-ArrayOutOfBounds.ll | 43 |
1 files changed, 22 insertions, 21 deletions
diff --git a/test/Transforms/Reassociate/2005-09-01-ArrayOutOfBounds.ll b/test/Transforms/Reassociate/2005-09-01-ArrayOutOfBounds.ll index f66148b..f6cef35 100644 --- a/test/Transforms/Reassociate/2005-09-01-ArrayOutOfBounds.ll +++ b/test/Transforms/Reassociate/2005-09-01-ArrayOutOfBounds.ll @@ -1,23 +1,24 @@ -; RUN: opt < %s -reassociate -instcombine -S |\ -; RUN: grep "ret i32 0" +; RUN: opt < %s -reassociate -instcombine -S | FileCheck %s -define i32 @f(i32 %a0, i32 %a1, i32 %a2, i32 %a3, i32 %a4) { - %tmp.2 = add i32 %a4, %a3 ; <i32> [#uses=1] - %tmp.4 = add i32 %tmp.2, %a2 ; <i32> [#uses=1] - %tmp.6 = add i32 %tmp.4, %a1 ; <i32> [#uses=1] - %tmp.8 = add i32 %tmp.6, %a0 ; <i32> [#uses=1] - %tmp.11 = add i32 %a3, %a2 ; <i32> [#uses=1] - %tmp.13 = add i32 %tmp.11, %a1 ; <i32> [#uses=1] - %tmp.15 = add i32 %tmp.13, %a0 ; <i32> [#uses=1] - %tmp.18 = add i32 %a2, %a1 ; <i32> [#uses=1] - %tmp.20 = add i32 %tmp.18, %a0 ; <i32> [#uses=1] - %tmp.23 = add i32 %a1, %a0 ; <i32> [#uses=1] - %tmp.26 = sub i32 %tmp.8, %tmp.15 ; <i32> [#uses=1] - %tmp.28 = add i32 %tmp.26, %tmp.20 ; <i32> [#uses=1] - %tmp.30 = sub i32 %tmp.28, %tmp.23 ; <i32> [#uses=1] - %tmp.32 = sub i32 %tmp.30, %a4 ; <i32> [#uses=1] - %tmp.34 = sub i32 %tmp.32, %a2 ; <i32> [#uses=2] - %T = mul i32 %tmp.34, %tmp.34 ; <i32> [#uses=1] - ret i32 %T -} +define i32 @f1(i32 %a0, i32 %a1, i32 %a2, i32 %a3, i32 %a4) { +; CHECK-LABEL: f1 +; CHECK-NEXT: ret i32 0 + %tmp.2 = add i32 %a4, %a3 + %tmp.4 = add i32 %tmp.2, %a2 + %tmp.6 = add i32 %tmp.4, %a1 + %tmp.8 = add i32 %tmp.6, %a0 + %tmp.11 = add i32 %a3, %a2 + %tmp.13 = add i32 %tmp.11, %a1 + %tmp.15 = add i32 %tmp.13, %a0 + %tmp.18 = add i32 %a2, %a1 + %tmp.20 = add i32 %tmp.18, %a0 + %tmp.23 = add i32 %a1, %a0 + %tmp.26 = sub i32 %tmp.8, %tmp.15 + %tmp.28 = add i32 %tmp.26, %tmp.20 + %tmp.30 = sub i32 %tmp.28, %tmp.23 + %tmp.32 = sub i32 %tmp.30, %a4 + %tmp.34 = sub i32 %tmp.32, %a2 + %T = mul i32 %tmp.34, %tmp.34 + ret i32 %T +} |