diff options
author | Evan Cheng <evan.cheng@apple.com> | 2011-01-28 07:12:38 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2011-01-28 07:12:38 +0000 |
commit | 1b5c0cb71dd9d529a14cedb4bd89d544bf7e61c3 (patch) | |
tree | dad2e758c2cdcb19e02be6660247761b70c4a939 /test/Transforms/JumpThreading/and-and-cond.ll | |
parent | 07317f7d333fd03ae216865a6f0e8b3bde5f030d (diff) | |
download | external_llvm-1b5c0cb71dd9d529a14cedb4bd89d544bf7e61c3.zip external_llvm-1b5c0cb71dd9d529a14cedb4bd89d544bf7e61c3.tar.gz external_llvm-1b5c0cb71dd9d529a14cedb4bd89d544bf7e61c3.tar.bz2 |
Revert r124462. There are a few big regressions that I need to fix first.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124478 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/JumpThreading/and-and-cond.ll')
-rw-r--r-- | test/Transforms/JumpThreading/and-and-cond.ll | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/test/Transforms/JumpThreading/and-and-cond.ll b/test/Transforms/JumpThreading/and-and-cond.ll index 765d940..e6db9ee 100644 --- a/test/Transforms/JumpThreading/and-and-cond.ll +++ b/test/Transforms/JumpThreading/and-and-cond.ll @@ -1,14 +1,14 @@ -; RUN: opt < %s -jump-threading -mem2reg -instcombine -simplifycfg -S | FileCheck %s +; RUN: opt < %s -jump-threading -mem2reg -instcombine -simplifycfg -S | grep {ret i32 %v1} +; There should be no uncond branches left. +; RUN: opt < %s -jump-threading -mem2reg -instcombine -simplifycfg -S | not grep {br label} declare i32 @f1() declare i32 @f2() declare void @f3() define i32 @test(i1 %cond, i1 %cond2, i1 %cond3) { -; CHECK: test br i1 %cond, label %T1, label %F1 -; CHECK-NOT: T1: T1: %v1 = call i32 @f1() br label %Merge @@ -18,10 +18,6 @@ F1: br label %Merge Merge: -; CHECK: Merge: -; CHECK: %v1 = call i32 @f1() -; CHECK-NEXT: %D = and i1 %cond2, %cond3 -; CHECK-NEXT: br i1 %D %A = phi i1 [true, %T1], [false, %F1] %B = phi i32 [%v1, %T1], [%v2, %F1] %C = and i1 %A, %cond2 |