Skip to content

Commit 0f0ff33

Browse files
committed
[NPM][StackSafetyAnalysis] Pin uses of -analyze to legacy PM
Tests already have corresponding NPM RUN lines.
1 parent 638fee6 commit 0f0ff33

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

llvm/test/Analysis/StackSafetyAnalysis/ipa-alias.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
; RUN: llvm-as %S/Inputs/ipa-alias.ll -o %t1.bc
77
; RUN: llvm-link %t0.bc %t1.bc -o %t.combined.bc
88

9-
; RUN: opt -S -analyze -stack-safety-local %t.combined.bc | FileCheck %s --check-prefixes=CHECK,LOCAL
9+
; RUN: opt -S -analyze -stack-safety-local %t.combined.bc -enable-new-pm=0 | FileCheck %s --check-prefixes=CHECK,LOCAL
1010
; RUN: opt -S -passes="print<stack-safety-local>" -disable-output %t.combined.bc 2>&1 | FileCheck %s --check-prefixes=CHECK,LOCAL
1111

12-
; RUN: opt -S -analyze -stack-safety %t.combined.bc | FileCheck %s --check-prefixes=CHECK,GLOBAL,NOLTO
12+
; RUN: opt -S -analyze -stack-safety %t.combined.bc -enable-new-pm=0 | FileCheck %s --check-prefixes=CHECK,GLOBAL,NOLTO
1313
; RUN: opt -S -passes="print-stack-safety" -disable-output %t.combined.bc 2>&1 | FileCheck %s --check-prefixes=CHECK,GLOBAL,NOLTO
1414

1515
; Do an end-to-test using the new LTO API

llvm/test/Analysis/StackSafetyAnalysis/ipa.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
; RUN: llvm-as %S/Inputs/ipa.ll -o %t1.bc
66
; RUN: llvm-link -disable-lazy-loading %t0.bc %t1.bc -o %t.combined.bc
77

8-
; RUN: opt -S -analyze -stack-safety-local %t.combined.bc | FileCheck %s --check-prefixes=CHECK,LOCAL
8+
; RUN: opt -S -analyze -stack-safety-local %t.combined.bc -enable-new-pm=0 | FileCheck %s --check-prefixes=CHECK,LOCAL
99
; RUN: opt -S -passes="print<stack-safety-local>" -disable-output %t.combined.bc 2>&1 | FileCheck %s --check-prefixes=CHECK,LOCAL
1010

11-
; RUN: opt -S -analyze -stack-safety %t.combined.bc | FileCheck %s --check-prefixes=CHECK,GLOBAL,NOLTO
11+
; RUN: opt -S -analyze -stack-safety %t.combined.bc -enable-new-pm=0 | FileCheck %s --check-prefixes=CHECK,GLOBAL,NOLTO
1212
; RUN: opt -S -passes="print-stack-safety" -disable-output %t.combined.bc 2>&1 | FileCheck %s --check-prefixes=CHECK,GLOBAL,NOLTO
1313

1414
; Do an end-to-test using the new LTO API

llvm/test/Analysis/StackSafetyAnalysis/local.ll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
; RUN: opt -S -analyze -stack-safety-local < %s | FileCheck %s --check-prefixes=CHECK,LOCAL
1+
; RUN: opt -S -analyze -stack-safety-local < %s -enable-new-pm=0 | FileCheck %s --check-prefixes=CHECK,LOCAL
22
; RUN: opt -S -passes="print<stack-safety-local>" -disable-output < %s 2>&1 | FileCheck %s --check-prefixes=CHECK,LOCAL
3-
; RUN: opt -S -analyze -stack-safety < %s | FileCheck %s --check-prefixes=CHECK,GLOBAL
3+
; RUN: opt -S -analyze -stack-safety < %s -enable-new-pm=0 | FileCheck %s --check-prefixes=CHECK,GLOBAL
44
; RUN: opt -S -passes="print-stack-safety" -disable-output < %s 2>&1 | FileCheck %s --check-prefixes=CHECK,GLOBAL
55

66
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
@@ -611,4 +611,4 @@ entry:
611611
}
612612

613613
declare void @llvm.lifetime.start.p0i8(i64, i8* nocapture)
614-
declare void @llvm.lifetime.end.p0i8(i64, i8* nocapture)
614+
declare void @llvm.lifetime.end.p0i8(i64, i8* nocapture)

llvm/test/Analysis/StackSafetyAnalysis/memintrin.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
; RUN: opt -S -analyze -stack-safety-local < %s | FileCheck %s
1+
; RUN: opt -S -analyze -stack-safety-local -enable-new-pm=0 < %s | FileCheck %s
22
; RUN: opt -S -passes="print<stack-safety-local>" -disable-output < %s 2>&1 | FileCheck %s
3-
; RUN: opt -S -analyze -stack-safety < %s | FileCheck %s
3+
; RUN: opt -S -analyze -stack-safety < %s -enable-new-pm=0 | FileCheck %s
44
; RUN: opt -S -passes="print-stack-safety" -disable-output < %s 2>&1 | FileCheck %s
55

66
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"

0 commit comments

Comments
 (0)