1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00

[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
This commit is contained in:
Arthur Eubanks 2020-09-14 18:11:09 -07:00
parent 0328e43463
commit ff74782c01
9 changed files with 17 additions and 13 deletions

View File

@ -1,4 +1,4 @@
; RUN: opt < %s -postdomtree -analyze | FileCheck %s
; RUN: opt < %s -postdomtree -analyze -enable-new-pm=0 | FileCheck %s
; RUN: opt < %s -passes='print<postdomtree>' 2>&1 | FileCheck %s
@a = external global i32, align 4

View File

@ -1,4 +1,4 @@
; RUN: opt < %s -postdomtree -analyze | FileCheck %s
; RUN: opt < %s -postdomtree -analyze -enable-new-pm=0 | FileCheck %s
; RUN: opt < %s -passes='print<postdomtree>' 2>&1 | FileCheck %s
@a = external global i32, align 4

View File

@ -1,4 +1,4 @@
; RUN: opt < %s -postdomtree -analyze | FileCheck %s
; RUN: opt < %s -postdomtree -analyze -enable-new-pm=0 | FileCheck %s
; RUN: opt < %s -passes='print<postdomtree>' 2>&1 | FileCheck %s
@a = external global i32, align 4

View File

@ -1,4 +1,4 @@
; RUN: opt < %s -postdomtree -analyze | FileCheck %s
; RUN: opt < %s -postdomtree -analyze -enable-new-pm=0 | FileCheck %s
; RUN: opt < %s -passes='print<postdomtree>' 2>&1 | FileCheck %s
; PR932

View File

@ -1,4 +1,4 @@
; RUN: opt < %s -postdomtree -analyze | FileCheck %s
; RUN: opt < %s -postdomtree -analyze -enable-new-pm=0 | FileCheck %s
; RUN: opt < %s -passes='print<postdomtree>' 2>&1 | FileCheck %s
; Function Attrs: nounwind ssp uwtable
@ -15,4 +15,4 @@ define void @foo() {
; CHECK-NEXT: [1] <<exit node>>
; CHECK-NEXT: [2] %2
; CHECK-NEXT: [2] %1
; CHECK-NEXT: [3] %0
; CHECK-NEXT: [3] %0

View File

@ -1,4 +1,5 @@
; RUN: opt < %s -postdomtree -analyze | FileCheck %s
; 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

View File

@ -1,4 +1,5 @@
; RUN: opt < %s -postdomtree -analyze | FileCheck %s
; 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 %a, label %bb3.i
@ -22,4 +23,4 @@ bb35:
; CHECK-NEXT: [3] %bb35.loopexit3
; CHECK-NEXT: [2] %a
; CHECK-NEXT: [2] %entry
; CHECK-NEXT: [2] %bb3.i
; CHECK-NEXT: [2] %bb3.i

View File

@ -1,4 +1,5 @@
; RUN: opt < %s -postdomtree -analyze | FileCheck %s
; 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
@ -194,4 +195,4 @@ bb35:
; CHECK-NEXT: [3] %bb35.loopexit3
; CHECK-NEXT: [2] %entry
; CHECK-NEXT: [2] %bb3.i
; CHECK-NEXT: Roots: %bb35 %bb3.i
; CHECK-NEXT: Roots: %bb35 %bb3.i

View File

@ -1,4 +1,5 @@
; RUN: opt < %s -postdomtree -analyze | FileCheck %s
; 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 1, label %a, label %b
@ -29,4 +30,4 @@ bb35:
; CHECK-NEXT: [3] %a
; CHECK-NEXT: [3] %entry
; CHECK-NEXT: [3] %b
; CHECK-NEXT: [2] %bb3.i
; CHECK-NEXT: [2] %bb3.i