diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-12 20:41:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-12 20:41:47 +0000 |
commit | 972a46c96a06ecb0e8ce73c796c313175abe76bb (patch) | |
tree | 14b5aa7e993317c77b525e35f91b3ba727458b9b /test/Transforms/JumpThreading/basic.ll | |
parent | e234a30a282f1aaec4aa63460fe8bba6416832a8 (diff) | |
download | external_llvm-972a46c96a06ecb0e8ce73c796c313175abe76bb.zip external_llvm-972a46c96a06ecb0e8ce73c796c313175abe76bb.tar.gz external_llvm-972a46c96a06ecb0e8ce73c796c313175abe76bb.tar.bz2 |
1) Use the new SimplifyInstructionsInBlock routine instead of the copy
in JT.
2) When cloning blocks for PHI or xor conditions, use
instsimplify to simplify the code as we go. This allows us to
squish common cases early in JT which opens up opportunities for
subsequent iterations, and allows it to completely simplify the
testcase.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93253 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/JumpThreading/basic.ll')
-rw-r--r-- | test/Transforms/JumpThreading/basic.ll | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/test/Transforms/JumpThreading/basic.ll b/test/Transforms/JumpThreading/basic.ll index 34b4243..503d301 100644 --- a/test/Transforms/JumpThreading/basic.ll +++ b/test/Transforms/JumpThreading/basic.ll @@ -407,12 +407,7 @@ T2: F2: ret i32 %v1 -;; FIXME: CONSTANT FOLD on clone and when phi gets eliminated. - -; CHECK: Entry.Merge_crit_edge: -; CHECK-NEXT: %M1 = icmp eq i32 192, 192 -; CHECK-NEXT: %N2 = xor i1 true, %M1 -; CHECK-NEXT: br i1 %N2, label %T2, label %F2 +; CHECK: br i1 %cond, label %F2, label %Merge ; CHECK: Merge: ; CHECK-NEXT: %M = icmp eq i32 %v1, 192 |