[NFC] Port all LoopUnroll tests to `-passes=` syntax
authorRoman Lebedev <lebedev.ri@gmail.com>
Wed, 7 Dec 2022 23:27:29 +0000 (02:27 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Wed, 7 Dec 2022 23:38:47 +0000 (02:38 +0300)
llvm/test/Transforms/LoopUnroll/peel-loop-conditions-pgo-2.ll
llvm/test/Transforms/LoopUnroll/revisit.ll
llvm/test/Transforms/LoopUnroll/unroll-pragmas.ll

index 13af866..5e9eef4 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -S -passes=loop-unroll -passes=loop-unroll -verify-dom-info -debug-only=loop-unroll -unroll-peel-max-count=7 2>&1 | FileCheck %s
+; RUN: opt < %s -S -passes=loop-unroll,loop-unroll -verify-dom-info -debug-only=loop-unroll -unroll-peel-max-count=7 2>&1 | FileCheck %s
 ; REQUIRES: asserts
 
 declare void @f1()
index 2cfc07f..c269d59 100644 (file)
@@ -4,12 +4,12 @@
 ; current two cases.
 ;
 ; RUN: opt < %s -disable-output -debug-pass-manager 2>&1 \
-; RUN:     -passes='require<opt-remark-emit>,loop(loop-unroll-full)' \
+; RUN: -passes='require<opt-remark-emit>,loop(loop-unroll-full)' \
 ; RUN:     | FileCheck %s
 ;
 ; Also run in a special mode that visits children.
 ; RUN: opt < %s -disable-output -debug-pass-manager -unroll-revisit-child-loops 2>&1 \
-; RUN:     -passes='require<opt-remark-emit>,loop(loop-unroll-full)' \
+; RUN: -passes='require<opt-remark-emit>,loop(loop-unroll-full)' \
 ; RUN:     | FileCheck %s --check-prefixes=CHECK,CHECK-CHILDREN
 
 ; Basic test is fully unrolled and we revisit the post-unroll new sibling
@@ -139,7 +139,7 @@ l0.0.latch:
 ; CHECK-CHILDREN-NOT: LoopFullUnrollPass
 ;
 ; Revisit the children of the outer loop that are part of the epilogue.
-; 
+;
 ; CHECK: LoopFullUnrollPass on l0.0.1.epil
 ; CHECK-NOT: LoopFullUnrollPass
 ; CHECK: LoopFullUnrollPass on l0.0.0.epil
index dfc2e00..1aaccd2 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: opt < %s -passes=loop-unroll -pragma-unroll-threshold=1024 -S | FileCheck -check-prefixes=CHECK,REM %s
-; RUN: opt < %s -passes=loop-unroll -passes=loop-unroll -pragma-unroll-threshold=1024 -S | FileCheck -check-prefixes=CHECK,REM %s
+; RUN: opt < %s -passes=loop-unroll,loop-unroll -pragma-unroll-threshold=1024 -S | FileCheck -check-prefixes=CHECK,REM %s
 ; RUN: opt < %s -passes=loop-unroll -unroll-allow-remainder=0 -pragma-unroll-threshold=1024 -S | FileCheck -check-prefixes=CHECK,NOREM %s
 ;
 ; Run loop unrolling twice to verify that loop unrolling metadata is properly