llvm-for-llvmta/test/Analysis/ScalarEvolution/unreachable-code.ll

15 lines
291 B
LLVM
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s
; RUN: opt < %s -disable-output "-passes=print<scalar-evolution>" 2>&1 | FileCheck %s
; CHECK: %t = add i64 %t, 1
; CHECK: --> undef
define void @foo() {
entry:
ret void
dead:
%t = add i64 %t, 1
ret void
}