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

Tree @release_90 (Download .tar.gz)

unreachable-code.ll @release_90raw · history · blame

; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s

; CHECK: %t = add i64 %t, 1
; CHECK: -->  undef

define void @foo() {
entry:
  ret void

dead:
  %t = add i64 %t, 1
  ret void
}