[llvm] a87f618 - [PlaceSafepoints] Pin tests to legacy PM

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 26 20:08:54 PDT 2020


Author: Arthur Eubanks
Date: 2020-10-26T20:07:37-07:00
New Revision: a87f618ea7950f096093953b41baba24775b397f

URL: https://github.com/llvm/llvm-project/commit/a87f618ea7950f096093953b41baba24775b397f
DIFF: https://github.com/llvm/llvm-project/commit/a87f618ea7950f096093953b41baba24775b397f.diff

LOG: [PlaceSafepoints] Pin tests to legacy PM

This pass isn't used in tree and can be ported to the NPM later on if desired.

Differential Revision: https://reviews.llvm.org/D90189

Added: 
    

Modified: 
    llvm/test/Transforms/PlaceSafepoints/basic.ll
    llvm/test/Transforms/PlaceSafepoints/call-in-loop.ll
    llvm/test/Transforms/PlaceSafepoints/finite-loops.ll
    llvm/test/Transforms/PlaceSafepoints/libcall.ll
    llvm/test/Transforms/PlaceSafepoints/memset.ll
    llvm/test/Transforms/PlaceSafepoints/no-statepoints.ll
    llvm/test/Transforms/PlaceSafepoints/split-backedge.ll
    llvm/test/Transforms/PlaceSafepoints/statepoint-coreclr.ll
    llvm/test/Transforms/PlaceSafepoints/statepoint-frameescape.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/PlaceSafepoints/basic.ll b/llvm/test/Transforms/PlaceSafepoints/basic.ll
index 5cbf2798f4ae..aed54aa006ac 100644
--- a/llvm/test/Transforms/PlaceSafepoints/basic.ll
+++ b/llvm/test/Transforms/PlaceSafepoints/basic.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -S -place-safepoints | FileCheck %s
+; RUN: opt < %s -S -place-safepoints -enable-new-pm=0 | FileCheck %s
 
 
 ; Do we insert a simple entry safepoint?

diff  --git a/llvm/test/Transforms/PlaceSafepoints/call-in-loop.ll b/llvm/test/Transforms/PlaceSafepoints/call-in-loop.ll
index 7601b6c81fe9..2a1892828744 100644
--- a/llvm/test/Transforms/PlaceSafepoints/call-in-loop.ll
+++ b/llvm/test/Transforms/PlaceSafepoints/call-in-loop.ll
@@ -1,7 +1,7 @@
 ; If there's a call in the loop which dominates the backedge, we 
 ; don't need a safepoint poll (since the callee must contain a 
 ; poll test).
-;; RUN: opt < %s -place-safepoints -S | FileCheck %s
+;; RUN: opt < %s -place-safepoints -S -enable-new-pm=0 | FileCheck %s
 
 declare void @foo()
 

diff  --git a/llvm/test/Transforms/PlaceSafepoints/finite-loops.ll b/llvm/test/Transforms/PlaceSafepoints/finite-loops.ll
index e7d518781969..b226cc780cd4 100644
--- a/llvm/test/Transforms/PlaceSafepoints/finite-loops.ll
+++ b/llvm/test/Transforms/PlaceSafepoints/finite-loops.ll
@@ -1,7 +1,7 @@
 ; Tests to ensure that we are not placing backedge safepoints in
 ; loops which are clearly finite.
-;; RUN: opt < %s -place-safepoints -spp-counted-loop-trip-width=32 -S | FileCheck %s
-;; RUN: opt < %s -place-safepoints -spp-counted-loop-trip-width=64 -S | FileCheck %s -check-prefix=COUNTED-64
+;; RUN: opt < %s -place-safepoints -spp-counted-loop-trip-width=32 -S -enable-new-pm=0 | FileCheck %s
+;; RUN: opt < %s -place-safepoints -spp-counted-loop-trip-width=64 -S -enable-new-pm=0 | FileCheck %s -check-prefix=COUNTED-64
 
 
 ; A simple counted loop with trivially known range
@@ -140,4 +140,4 @@ define void @gc.safepoint_poll() {
 entry:
   call void @do_safepoint()
   ret void
-}
\ No newline at end of file
+}

diff  --git a/llvm/test/Transforms/PlaceSafepoints/libcall.ll b/llvm/test/Transforms/PlaceSafepoints/libcall.ll
index bb6ce61e4793..58184e5cb4a3 100644
--- a/llvm/test/Transforms/PlaceSafepoints/libcall.ll
+++ b/llvm/test/Transforms/PlaceSafepoints/libcall.ll
@@ -1,4 +1,4 @@
-; RUN: opt -S -place-safepoints < %s | FileCheck %s
+; RUN: opt -S -place-safepoints < %s -enable-new-pm=0 | FileCheck %s
 
 ; Libcalls will not contain a safepoint poll, so check that we insert
 ; a safepoint in a loop containing a libcall.

diff  --git a/llvm/test/Transforms/PlaceSafepoints/memset.ll b/llvm/test/Transforms/PlaceSafepoints/memset.ll
index 41881f675803..d5d8ec91ecbc 100644
--- a/llvm/test/Transforms/PlaceSafepoints/memset.ll
+++ b/llvm/test/Transforms/PlaceSafepoints/memset.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -S -place-safepoints | FileCheck %s
+; RUN: opt < %s -S -place-safepoints -enable-new-pm=0 | FileCheck %s
 
 define void @test(i32, i8 addrspace(1)* %ptr) gc "statepoint-example" {
 ; CHECK-LABEL: @test

diff  --git a/llvm/test/Transforms/PlaceSafepoints/no-statepoints.ll b/llvm/test/Transforms/PlaceSafepoints/no-statepoints.ll
index ad2442369b88..a9220ce9ce63 100644
--- a/llvm/test/Transforms/PlaceSafepoints/no-statepoints.ll
+++ b/llvm/test/Transforms/PlaceSafepoints/no-statepoints.ll
@@ -1,4 +1,4 @@
-; RUN: opt -S -place-safepoints < %s | FileCheck %s
+; RUN: opt -S -place-safepoints < %s -enable-new-pm=0 | FileCheck %s
 
 declare void @callee()
 

diff  --git a/llvm/test/Transforms/PlaceSafepoints/split-backedge.ll b/llvm/test/Transforms/PlaceSafepoints/split-backedge.ll
index 82dc52771358..feec6e0a6e22 100644
--- a/llvm/test/Transforms/PlaceSafepoints/split-backedge.ll
+++ b/llvm/test/Transforms/PlaceSafepoints/split-backedge.ll
@@ -1,5 +1,5 @@
 ;; A very basic test to make sure that splitting the backedge keeps working
-;; RUN: opt < %s -place-safepoints -spp-split-backedge=1 -S | FileCheck %s
+;; RUN: opt < %s -place-safepoints -spp-split-backedge=1 -S -enable-new-pm=0 | FileCheck %s
 
 define void @test(i32, i1 %cond) gc "statepoint-example" {
 ; CHECK-LABEL: @test
@@ -43,4 +43,4 @@ define void @gc.safepoint_poll() {
 entry:
   call void @do_safepoint()
   ret void
-}
\ No newline at end of file
+}

diff  --git a/llvm/test/Transforms/PlaceSafepoints/statepoint-coreclr.ll b/llvm/test/Transforms/PlaceSafepoints/statepoint-coreclr.ll
index 5914b2c51411..40fbc2ec13c7 100644
--- a/llvm/test/Transforms/PlaceSafepoints/statepoint-coreclr.ll
+++ b/llvm/test/Transforms/PlaceSafepoints/statepoint-coreclr.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -S -place-safepoints | FileCheck %s
+; RUN: opt < %s -S -place-safepoints -enable-new-pm=0 | FileCheck %s
 
 ; Basic test to make sure that safepoints are placed
 ; for CoreCLR GC

diff  --git a/llvm/test/Transforms/PlaceSafepoints/statepoint-frameescape.ll b/llvm/test/Transforms/PlaceSafepoints/statepoint-frameescape.ll
index bd646bd2f549..c97eb76fe657 100644
--- a/llvm/test/Transforms/PlaceSafepoints/statepoint-frameescape.ll
+++ b/llvm/test/Transforms/PlaceSafepoints/statepoint-frameescape.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -S -place-safepoints | FileCheck %s
+; RUN: opt < %s -S -place-safepoints -enable-new-pm=0 | FileCheck %s
 
 declare void @llvm.localescape(...)
 
@@ -26,4 +26,4 @@ define void @gc.safepoint_poll() {
 entry:
   call void @do_safepoint()
   ret void
-}
\ No newline at end of file
+}


        


More information about the llvm-commits mailing list