1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/test/Analysis/PostDominators/pr6047_a.ll
Arthur Eubanks ff74782c01 [PostDominators][NewPM] Fix tests to work under NPM
Each test has a legacy PM pinned to legacy PM and a NPM RUN line.

Reviewed By: asbirlea

Differential Revision: https://reviews.llvm.org/D87660
2020-09-15 11:19:01 -07:00

23 lines
478 B
LLVM

; RUN: opt < %s -postdomtree -analyze -enable-new-pm=0 | FileCheck %s
; RUN: opt < %s -passes='print<postdomtree>' 2>&1 | FileCheck %s
define internal void @f() {
entry:
br i1 undef, label %bb35, label %bb3.i
bb3.i:
br label %bb3.i
bb35.loopexit3:
br label %bb35
bb35:
ret void
}
;CHECK:Inorder PostDominator Tree:
;CHECK-NEXT: [1] <<exit node>>
;CHECK-NEXT: [2] %bb35
;CHECK-NEXT: [3] %bb35.loopexit3
;CHECK-NEXT: [2] %entry
;CHECK-NEXT: [2] %bb3.i