From: Roman Lebedev Date: Wed, 7 Dec 2022 23:27:29 +0000 (+0300) Subject: [NFC] Port all LoopUnroll tests to `-passes=` syntax X-Git-Tag: upstream/17.0.6~24808 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=86faf2cd8870e2d9ee25f439467896eed971a2e9;p=platform%2Fupstream%2Fllvm.git [NFC] Port all LoopUnroll tests to `-passes=` syntax --- diff --git a/llvm/test/Transforms/LoopUnroll/peel-loop-conditions-pgo-2.ll b/llvm/test/Transforms/LoopUnroll/peel-loop-conditions-pgo-2.ll index 13af866..5e9eef4 100644 --- a/llvm/test/Transforms/LoopUnroll/peel-loop-conditions-pgo-2.ll +++ b/llvm/test/Transforms/LoopUnroll/peel-loop-conditions-pgo-2.ll @@ -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() diff --git a/llvm/test/Transforms/LoopUnroll/revisit.ll b/llvm/test/Transforms/LoopUnroll/revisit.ll index 2cfc07f..c269d59 100644 --- a/llvm/test/Transforms/LoopUnroll/revisit.ll +++ b/llvm/test/Transforms/LoopUnroll/revisit.ll @@ -4,12 +4,12 @@ ; current two cases. ; ; RUN: opt < %s -disable-output -debug-pass-manager 2>&1 \ -; RUN: -passes='require,loop(loop-unroll-full)' \ +; RUN: -passes='require,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,loop(loop-unroll-full)' \ +; RUN: -passes='require,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 diff --git a/llvm/test/Transforms/LoopUnroll/unroll-pragmas.ll b/llvm/test/Transforms/LoopUnroll/unroll-pragmas.ll index dfc2e00..1aaccd2 100644 --- a/llvm/test/Transforms/LoopUnroll/unroll-pragmas.ll +++ b/llvm/test/Transforms/LoopUnroll/unroll-pragmas.ll @@ -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