diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/Analysis/ScalarEvolution/unreachable-code.ll | 13 | 
1 files changed, 13 insertions, 0 deletions
| diff --git a/test/Analysis/ScalarEvolution/unreachable-code.ll b/test/Analysis/ScalarEvolution/unreachable-code.ll new file mode 100644 index 0000000..51d9398 --- /dev/null +++ b/test/Analysis/ScalarEvolution/unreachable-code.ll @@ -0,0 +1,13 @@ +; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s + +; CHECK: %t = add i64 %t, 1 +; CHECK: -->  %t + +define void @foo() { +entry: +  ret void + +dead: +  %t = add i64 %t, 1 +  ret void +} | 
