diff options
author | Evan Cheng <evan.cheng@apple.com> | 2011-01-29 02:43:04 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2011-01-29 02:43:04 +0000 |
commit | b0a42fdb36b575a8ad939ca9624105908aeedf51 (patch) | |
tree | 5ea1ef8b97500d011b703e296c66a2056782b0a3 /test/Transforms/JumpThreading/and-cond.ll | |
parent | 5e6940788fb2f8cf3ce4219d3ac0f78317f54696 (diff) | |
download | external_llvm-b0a42fdb36b575a8ad939ca9624105908aeedf51.zip external_llvm-b0a42fdb36b575a8ad939ca9624105908aeedf51.tar.gz external_llvm-b0a42fdb36b575a8ad939ca9624105908aeedf51.tar.bz2 |
Revert r124518. It broke Linux self-host.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124522 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/JumpThreading/and-cond.ll')
-rw-r--r-- | test/Transforms/JumpThreading/and-cond.ll | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/test/Transforms/JumpThreading/and-cond.ll b/test/Transforms/JumpThreading/and-cond.ll index 0159bb3..58dbec7 100644 --- a/test/Transforms/JumpThreading/and-cond.ll +++ b/test/Transforms/JumpThreading/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) { -; CHECK: test br i1 %cond, label %T1, label %F1 -; CHECK-NOT: T1 T1: %v1 = call i32 @f1() br label %Merge @@ -18,9 +18,6 @@ F1: br label %Merge Merge: -; CHECK: Merge: -; CHECK: %v1 = call i32 @f1() -; CHECK-NEXT: br i1 %cond2 %A = phi i1 [true, %T1], [false, %F1] %B = phi i32 [%v1, %T1], [%v2, %F1] %C = and i1 %A, %cond2 |