llvm-project/llvm/test/Other/loop-print-after-pass-invalidated.ll
Prem Chintalapudi d4de7c2e1e [NewPM] Use PassID instead of pass name
PrintIRInstrumentation::shouldPrintAfterPass accepts a pass ID instead of a pass name

Reviewed By: aeubanks

Differential Revision: https://reviews.llvm.org/D147394
2023-04-14 17:39:35 -07:00

22 lines
683 B
LLVM

; RUN: opt < %s 2>&1 -disable-output \
; RUN: -passes='simple-loop-unswitch<nontrivial>' \
; RUN: -print-after=simple-loop-unswitch \
; RUN: | FileCheck %s
; CHECK: *** IR Dump After SimpleLoopUnswitchPass on for.cond ***
; CHECK: *** IR Dump After SimpleLoopUnswitchPass on for.cond.us ***
define void @loop(i1 %w) {
entry:
br label %for.cond
; Loop:
for.cond: ; preds = %for.inc, %entry
br i1 %w, label %for.inc, label %if.then
if.then: ; preds = %for.cond
br label %for.inc
for.inc: ; preds = %if.then, %for.cond
br label %for.cond
}