llvm-6502/test/Analysis/ScalarEvolution/unreachable-code.ll
Dan Gohman 4ecbca558f Avoid analyzing instructions in blocks not reachable from the entry block.
They are lots of trouble, and they don't matter. This fixes PR6559.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98103 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-09 23:46:50 +00:00

14 lines
185 B
LLVM

; 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
}