llvm-project/llvm/test/Analysis/ScalarEvolution/unreachable-code.ll

14 lines
188 B
LLVM

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