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

Tree @release_39 (Download .tar.gz)

unreachable-code.ll @release_39raw · 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
}