From c0b4c20e5e62527d58056ccbd50cfba858436e5b Mon Sep 17 00:00:00 2001 From: Gerolf Hoflehner Date: Tue, 7 Oct 2014 00:16:12 +0000 Subject: [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. llvm-svn: 219175 --- llvm/test/Transforms/InstCombine/pr12338.ll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/test') diff --git a/llvm/test/Transforms/InstCombine/pr12338.ll b/llvm/test/Transforms/InstCombine/pr12338.ll index d34600f0fa5..051c21ca41a 100644 --- a/llvm/test/Transforms/InstCombine/pr12338.ll +++ b/llvm/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> [ , %entry ], [ %phi2, %cond.end47 ] -; CHECK: sub <1 x i32> , %local %phi3 = sub <1 x i32> zeroinitializer, %local br label %cond.end -- cgit v1.2.3