aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/pr12338.ll
diff options
context:
space:
mode:
authorGerolf Hoflehner <ghoflehner@apple.com>2014-10-07 00:16:12 +0000
committerGerolf Hoflehner <ghoflehner@apple.com>2014-10-07 00:16:12 +0000
commit5307076e20b2bbe6ef61cf7717c37b7e3fe27cdc (patch)
treec9e961936bbed308e9d77a190c1ac089bdc354de /test/Transforms/InstCombine/pr12338.ll
parent844eeb3741ea2e3fd6f229fc0478fba98096b89c (diff)
[InstCombine] re-commit r218721 icmp-select-icmp optimization
Takes care of the assert that caused build fails. Rather than asserting the code checks now that the definition and use are in the same block, and does not attempt to optimize when that is not the case. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219175 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/pr12338.ll')
-rw-r--r--test/Transforms/InstCombine/pr12338.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Transforms/InstCombine/pr12338.ll b/test/Transforms/InstCombine/pr12338.ll
index d34600f0fa5..051c21ca41a 100644
--- a/test/Transforms/InstCombine/pr12338.ll
+++ b/test/Transforms/InstCombine/pr12338.ll
@@ -2,11 +2,11 @@
define void @entry() nounwind {
entry:
+; CHECK: br label %for.cond
br label %for.cond
for.cond:
%local = phi <1 x i32> [ <i32 0>, %entry ], [ %phi2, %cond.end47 ]
-; CHECK: sub <1 x i32> <i32 92>, %local
%phi3 = sub <1 x i32> zeroinitializer, %local
br label %cond.end