diff options
| author | Gerolf Hoflehner <ghoflehner@apple.com> | 2014-10-07 00:16:12 +0000 |
|---|---|---|
| committer | Gerolf Hoflehner <ghoflehner@apple.com> | 2014-10-07 00:16:12 +0000 |
| commit | c0b4c20e5e62527d58056ccbd50cfba858436e5b (patch) | |
| tree | 663e936d95f03621139a3c86ec185e69adc34ecb /llvm/test/Transforms | |
| parent | 3349872cf3fb075e7bf587cba34f305a4985c598 (diff) | |
| download | bcm5719-llvm-c0b4c20e5e62527d58056ccbd50cfba858436e5b.tar.gz bcm5719-llvm-c0b4c20e5e62527d58056ccbd50cfba858436e5b.zip | |
[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
Diffstat (limited to 'llvm/test/Transforms')
| -rw-r--r-- | llvm/test/Transforms/InstCombine/pr12338.ll | 2 |
1 files changed, 1 insertions, 1 deletions
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> [ <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 |

