diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-07-30 21:04:00 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-07-30 21:04:00 +0000 |
| commit | d07cf400ab587b8d5a6adc169e222d2ff48eca1f (patch) | |
| tree | 2e68cf3ac45e52fe9041ed314a42e48c9da56955 /llvm/test/Transforms/SimplifyCFG/lifetime.ll | |
| parent | d9119b688441ae39e60be1f6a839b84fbd6eaf4f (diff) | |
| download | bcm5719-llvm-d07cf400ab587b8d5a6adc169e222d2ff48eca1f.tar.gz bcm5719-llvm-d07cf400ab587b8d5a6adc169e222d2ff48eca1f.zip | |
SimplifyCFG: Avoid miscompilations due to removed lifetime intrinsics.
The lifetime intrinsics need some work in order to make it clear which
optimizations are or are not valid.
For now dropping this optimization avoids a miscompilation.
Patch by Björn Steinbrink.
llvm-svn: 214336
Diffstat (limited to 'llvm/test/Transforms/SimplifyCFG/lifetime.ll')
| -rw-r--r-- | llvm/test/Transforms/SimplifyCFG/lifetime.ll | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/Transforms/SimplifyCFG/lifetime.ll b/llvm/test/Transforms/SimplifyCFG/lifetime.ll index b7942217253..7c66be52950 100644 --- a/llvm/test/Transforms/SimplifyCFG/lifetime.ll +++ b/llvm/test/Transforms/SimplifyCFG/lifetime.ll @@ -1,11 +1,11 @@ ; RUN: opt < %s -simplifycfg -S | FileCheck %s -; Test that a lifetime intrinsic doesn't prevent us from simplifying this. +; Test that a lifetime intrinsic isn't removed because that would change semantics ; CHECK: foo ; CHECK: entry: -; CHECK-NOT: bb0: -; CHECK-NOT: bb1: +; CHECK: bb0: +; CHECK: bb1: ; CHECK: ret define void @foo(i1 %x) { entry: |

