[llvm] edeab4d - [NFC] Port all Analysis/ScalarEvolution tests to `-passes=` syntax

Roman Lebedev via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 8 14:05:46 PST 2022


Author: Roman Lebedev
Date: 2022-12-09T01:04:45+03:00
New Revision: edeab4db65b888c558a23498c1bdcf45426321cd

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

LOG: [NFC] Port all Analysis/ScalarEvolution tests to `-passes=` syntax

Added: 
    

Modified: 
    llvm/test/Analysis/ScalarEvolution/2007-08-06-MisinterpretBranch.ll
    llvm/test/Analysis/ScalarEvolution/2012-03-26-LoadConstant.ll
    llvm/test/Analysis/ScalarEvolution/2012-05-29-MulAddRec.ll
    llvm/test/Analysis/ScalarEvolution/avoid-assume-hang.ll
    llvm/test/Analysis/ScalarEvolution/scev-expander-existing-value-offset.ll
    llvm/test/Analysis/ScalarEvolution/scev-expander-reuse-unroll.ll
    llvm/test/Analysis/ScalarEvolution/scev-expander-reuse-vect.ll
    llvm/test/Analysis/ScalarEvolution/scev-invalid.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Analysis/ScalarEvolution/2007-08-06-MisinterpretBranch.ll b/llvm/test/Analysis/ScalarEvolution/2007-08-06-MisinterpretBranch.ll
index 90acf9d5132d8..7a165e67e6cdd 100644
--- a/llvm/test/Analysis/ScalarEvolution/2007-08-06-MisinterpretBranch.ll
+++ b/llvm/test/Analysis/ScalarEvolution/2007-08-06-MisinterpretBranch.ll
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -temporarily-allow-old-pass-syntax < %s -indvars -adce -simplifycfg -S | FileCheck %s
+; RUN: opt < %s -passes='loop(indvars),adce,simplifycfg' -S | FileCheck %s
 ; PR1598
 
 define i32 @f(i32 %a, i32 %b, i32 %x, i32 %y) {

diff  --git a/llvm/test/Analysis/ScalarEvolution/2012-03-26-LoadConstant.ll b/llvm/test/Analysis/ScalarEvolution/2012-03-26-LoadConstant.ll
index 786b44e190b73..b78664e89923a 100644
--- a/llvm/test/Analysis/ScalarEvolution/2012-03-26-LoadConstant.ll
+++ b/llvm/test/Analysis/ScalarEvolution/2012-03-26-LoadConstant.ll
@@ -1,4 +1,4 @@
-; RUN: opt -temporarily-allow-old-pass-syntax < %s -globalopt -temporarily-allow-old-pass-syntax -instcombine -loop-rotate -licm -instcombine -indvars -loop-deletion -constmerge -S | FileCheck %s
+; RUN: opt < %s -passes='globalopt,function(instcombine,loop-mssa(loop-rotate,licm),instcombine,loop(indvars,loop-deletion)),constmerge' -S | FileCheck %s
 ; PR11882: ComputeLoadConstantCompareExitLimit crash.
 ;
 ; for.body is deleted leaving a loop-invariant load.

diff  --git a/llvm/test/Analysis/ScalarEvolution/2012-05-29-MulAddRec.ll b/llvm/test/Analysis/ScalarEvolution/2012-05-29-MulAddRec.ll
index d854df37f62ce..a41781aeba01b 100644
--- a/llvm/test/Analysis/ScalarEvolution/2012-05-29-MulAddRec.ll
+++ b/llvm/test/Analysis/ScalarEvolution/2012-05-29-MulAddRec.ll
@@ -1,4 +1,4 @@
-; RUN: opt -temporarily-allow-old-pass-syntax < %s -S -indvars -loop-unroll | FileCheck %s
+; RUN: opt < %s -S -passes='loop(indvars),loop-unroll' | FileCheck %s
 ;
 ; loop-unroll fully unrolls the inner loop, creating an interesting
 ; chain of multiplication. indvars forces SCEV to run again on the

diff  --git a/llvm/test/Analysis/ScalarEvolution/avoid-assume-hang.ll b/llvm/test/Analysis/ScalarEvolution/avoid-assume-hang.ll
index 7bb30e131db53..bca1d50bced79 100644
--- a/llvm/test/Analysis/ScalarEvolution/avoid-assume-hang.ll
+++ b/llvm/test/Analysis/ScalarEvolution/avoid-assume-hang.ll
@@ -1,4 +1,4 @@
-; RUN: opt -temporarily-allow-old-pass-syntax %s -always-inline | opt -temporarily-allow-old-pass-syntax -passes='print<scalar-evolution>'
+; RUN: opt %s -passes=always-inline | opt -passes='print<scalar-evolution>'
 ; There was optimization bug in ScalarEvolution, that causes too long
 ; compute time and stack overflow crash.
 

diff  --git a/llvm/test/Analysis/ScalarEvolution/scev-expander-existing-value-offset.ll b/llvm/test/Analysis/ScalarEvolution/scev-expander-existing-value-offset.ll
index c1d929349ac0c..7af320fdc9a90 100644
--- a/llvm/test/Analysis/ScalarEvolution/scev-expander-existing-value-offset.ll
+++ b/llvm/test/Analysis/ScalarEvolution/scev-expander-existing-value-offset.ll
@@ -1,4 +1,4 @@
-; RUN: opt -temporarily-allow-old-pass-syntax < %s -loop-vectorize -force-vector-interleave=1 -force-vector-width=4 -S |FileCheck %s
+; RUN: opt < %s -passes=loop-vectorize -force-vector-interleave=1 -force-vector-width=4 -S |FileCheck %s
 ; SCEV expansion uses existing value or value + offset to reduce duplicate code expansion so foo should only generate one select inst after loop vectorization.
 ; CHECK-LABEL: @foo(
 ; CHECK: select

diff  --git a/llvm/test/Analysis/ScalarEvolution/scev-expander-reuse-unroll.ll b/llvm/test/Analysis/ScalarEvolution/scev-expander-reuse-unroll.ll
index 90ce36045d91b..8f7fe2b9f760c 100644
--- a/llvm/test/Analysis/ScalarEvolution/scev-expander-reuse-unroll.ll
+++ b/llvm/test/Analysis/ScalarEvolution/scev-expander-reuse-unroll.ll
@@ -1,4 +1,4 @@
-; RUN: opt -temporarily-allow-old-pass-syntax < %s -loop-unroll -unroll-runtime -unroll-count=2 -verify-scev-maps -S | FileCheck %s
+; RUN: opt < %s -passes=loop-unroll -unroll-runtime -unroll-count=2 -verify-scev-maps -S | FileCheck %s
 
 ; Check SCEV expansion uses existing value when unrolling an inner loop with runtime trip count in a loop nest.
 ; The outer loop gets unrolled twice, so we see 2 selects in the outer loop blocks.

diff  --git a/llvm/test/Analysis/ScalarEvolution/scev-expander-reuse-vect.ll b/llvm/test/Analysis/ScalarEvolution/scev-expander-reuse-vect.ll
index f8b7170fe7b34..ef8a6f49a8353 100644
--- a/llvm/test/Analysis/ScalarEvolution/scev-expander-reuse-vect.ll
+++ b/llvm/test/Analysis/ScalarEvolution/scev-expander-reuse-vect.ll
@@ -1,4 +1,4 @@
-; RUN: opt -temporarily-allow-old-pass-syntax < %s -loop-vectorize -force-vector-width=4 -verify-scev-maps -S |FileCheck %s
+; RUN: opt < %s -passes=loop-vectorize -force-vector-width=4 -verify-scev-maps -S |FileCheck %s
 
 ; SCEV expansion uses existing value when the SCEV has no AddRec expr.
 ; CHECK-LABEL: @foo(

diff  --git a/llvm/test/Analysis/ScalarEvolution/scev-invalid.ll b/llvm/test/Analysis/ScalarEvolution/scev-invalid.ll
index 05d77977d3972..1afc3e175c3ae 100644
--- a/llvm/test/Analysis/ScalarEvolution/scev-invalid.ll
+++ b/llvm/test/Analysis/ScalarEvolution/scev-invalid.ll
@@ -1,4 +1,4 @@
-; RUN: opt -temporarily-allow-old-pass-syntax < %s -S -indvars -loop-unroll | FileCheck %s
+; RUN: opt < %s -S -passes='loop(indvars),loop-unroll' | FileCheck %s
 ;
 ; PR15570: SEGV: SCEV back-edge info invalid after dead code removal.
 ;


        


More information about the llvm-commits mailing list