llvm.org GIT mirror llvm / c0f00a9 test / Analysis / ScalarEvolution / unreachable-code.ll
c0f00a9

Tree @c0f00a9 (Download .tar.gz)

unreachable-code.ll @c0f00a9raw · history · blame

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