1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00
llvm-mirror/test/Analysis/RegionInfo/multiple_exiting_edge.ll
Arthur Eubanks 6c10abc35d [RegionInfo][NewPM] Fix RegionInfo tests to work under NPM
Pin RUN lines with -analyze to legacy PM, add corresponding NPM RUN line if missing.

Reviewed By: asbirlea

Differential Revision: https://reviews.llvm.org/D87658
2020-09-15 11:12:14 -07:00

41 lines
1.4 KiB
LLVM

; RUN: opt -regions -print-region-style=bb -analyze -enable-new-pm=0 < %s 2>&1 | FileCheck -check-prefix=BBIT %s
; RUN: opt -regions -print-region-style=rn -analyze -enable-new-pm=0 < %s 2>&1 | FileCheck -check-prefix=RNIT %s
; RUN: opt -passes='print<regions>' -print-region-style=bb -disable-output < %s 2>&1 | FileCheck -check-prefix=BBIT %s
; RUN: opt -passes='print<regions>' -print-region-style=rn -disable-output < %s 2>&1 | FileCheck -check-prefix=RNIT %s
define void @normal_condition_0() nounwind {
bb38: ; preds = %bb34, %bb34, %bb37
switch i32 undef, label %bb42 [
i32 67, label %bb42
i32 90, label %bb41
]
bb41: ; preds = %bb38
br label %bb42
bb42: ; preds = %bb38, %bb38, %bb41
ret void
}
; BBIT: bb38, bb42, bb41,
; BBIT: bb38, bb41,
; RNIT: bb38 => bb42, bb42,
; RNIT: bb38, bb41,
define void @normal_condition_1() nounwind {
bb38: ; preds = %bb34, %bb34, %bb37
switch i32 undef, label %bb41 [
i32 67, label %bb42
i32 90, label %bb42
]
bb41: ; preds = %bb38
br label %bb42
bb42: ; preds = %bb38, %bb38, %bb41
ret void
}
; BBIT: bb38, bb41, bb42,
; BBIT: bb38, bb41,
; RNIT: bb38 => bb42, bb42,
; RNIT: bb38, bb41,