[NewPM] Rename 'unswitch' to 'simple-loop-unswitch' in PassRegistry
It is confusing to have two ways of specifying the same pass
('simple-loop-unswitch' and 'unswitch'). This patch replaces
'unswitch' by 'simple-loop-unswitch' to get a unique identifier.
Using 'simple-loop-unswitch' instead of 'unswitch' also has the
advantage of matching how the pass is named in DEBUG_TYPE etc. So
this makes it a bit more consistent how we refer to the pass in
options such as -passes, -print-after and -debug-only.
Reviewed By: aeubanks
Differential Revision: https://reviews.llvm.org/D105628
This commit is contained in:
1 parent
472462c472
commit
1db2551cc1
28 files changed
+91
-96
No files matched your search
@@ -436,7 +436,6 @@ LOOP_PASS("print<loop-cache-cost>", LoopCachePrinterPass(dbgs()))
|
||||
LOOP_PASS("loop-predication", LoopPredicationPass())
|
||||
LOOP_PASS("guard-widening", GuardWideningPass())
|
||||
LOOP_PASS("loop-bound-split", LoopBoundSplitPass())
|
||||
LOOP_PASS("simple-loop-unswitch", SimpleLoopUnswitchPass())
|
||||
LOOP_PASS("loop-reroll", LoopRerollPass())
|
||||
LOOP_PASS("loop-versioning-licm", LoopVersioningLICMPass())
|
||||
#undef LOOP_PASS
|
||||
@@ -444,7 +443,7 @@ LOOP_PASS("loop-versioning-licm", LoopVersioningLICMPass())
|
||||
#ifndef LOOP_PASS_WITH_PARAMS
|
||||
#define LOOP_PASS_WITH_PARAMS(NAME, CLASS, CREATE_PASS, PARSER, PARAMS)
|
||||
#endif
|
||||
LOOP_PASS_WITH_PARAMS("unswitch",
|
||||
LOOP_PASS_WITH_PARAMS("simple-loop-unswitch",
|
||||
"SimpleLoopUnswitchPass",
|
||||
[](bool NonTrivial) {
|
||||
return SimpleLoopUnswitchPass(NonTrivial);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
; RUN: opt -loop-unswitch -loop-reduce -loop-simplifycfg -verify-memoryssa -S %s | FileCheck %s
|
||||
|
||||
; TODO: also run with NPM, but currently LSR does not preserve LCSSA, causing a verification failure on the test.
|
||||
; opt -passes='loop-mssa(unswitch<nontrivial>,loop-reduce,simplifycfg)' -verify-memoryssa -S %s | FileCheck %s
|
||||
; opt -passes='loop-mssa(simple-loop-unswitch<nontrivial>,loop-reduce,simplifycfg)' -verify-memoryssa -S %s | FileCheck %s
|
||||
|
||||
; Test case for PR47557.
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
; RUN: opt < %s -disable-output -passes='no-op-module,no-op-function' -print-before=no-op-function --print-module-scope 2>&1 | FileCheck %s --check-prefix=TWICE
|
||||
; RUN: opt < %s -disable-output -passes='no-op-module,no-op-function' -print-after=no-op-function --print-module-scope 2>&1 | FileCheck %s --check-prefix=TWICE
|
||||
; RUN: opt < %s -disable-output -passes='loop-vectorize' -print-before=loop-vectorize -print-after=loop-vectorize 2>&1 | FileCheck %s --check-prefix=CHECK-LV --allow-empty
|
||||
; RUN: opt < %s -disable-output -passes='simple-loop-unswitch,unswitch' -print-before=unswitch -print-after=simple-loop-unswitch 2>&1 | FileCheck %s --check-prefix=CHECK-UNSWITCH --allow-empty
|
||||
; RUN: opt < %s -disable-output -passes='simple-loop-unswitch,simple-loop-unswitch<nontrivial>,simple-loop-unswitch<no-nontrivial>' -print-before=simple-loop-unswitch -print-after=simple-loop-unswitch 2>&1 | FileCheck %s --check-prefix=CHECK-UNSWITCH --allow-empty
|
||||
|
||||
; NONE-NOT: @foo
|
||||
; NONE-NOT: @bar
|
||||
@@ -33,15 +33,11 @@
|
||||
; CHECK-LV: *** IR Dump After LoopVectorizePass on bar ***
|
||||
|
||||
; Verify that we can handle loop passes with params.
|
||||
|
||||
; FIXME: The SimpleLoopUnswitchPass is extra complicated as we have different
|
||||
; pass names mapping to the same class name. But we currently only use a 1-1
|
||||
; mapping, so we do not get the -print-before=unswitch printout here. So the
|
||||
; NOT checks below is currently verifying the "faulty" behavior and we
|
||||
; actually want to get those printout here in the future.
|
||||
; CHECK-UNSWITCH-NOT: *** IR Dump Before SimpleLoopUnswitchPass on Loop at depth 1 containing
|
||||
; CHECK-UNSWITCH: *** IR Dump Before SimpleLoopUnswitchPass on Loop at depth 1 containing
|
||||
; CHECK-UNSWITCH: *** IR Dump After SimpleLoopUnswitchPass on Loop at depth 1 containing
|
||||
; CHECK-UNSWITCH-NOT: *** IR Dump Before SimpleLoopUnswitchPass on Loop at depth 1 containing
|
||||
; CHECK-UNSWITCH: *** IR Dump Before SimpleLoopUnswitchPass on Loop at depth 1 containing
|
||||
; CHECK-UNSWITCH: *** IR Dump After SimpleLoopUnswitchPass on Loop at depth 1 containing
|
||||
; CHECK-UNSWITCH: *** IR Dump Before SimpleLoopUnswitchPass on Loop at depth 1 containing
|
||||
; CHECK-UNSWITCH: *** IR Dump After SimpleLoopUnswitchPass on Loop at depth 1 containing
|
||||
|
||||
define void @foo() {
|
||||
|
||||
@@ -21,6 +21,6 @@
|
||||
; CHECK: Loop passes:
|
||||
; CHECK: no-op-loop
|
||||
; CHECK: Loop passes with params:
|
||||
; CHECK: unswitch<no-nontrivial;nontrivial>
|
||||
; CHECK: simple-loop-unswitch<no-nontrivial;nontrivial>
|
||||
; CHECK: Loop analyses:
|
||||
; CHECK: no-op-loop
|
||||
@@ -1,5 +1,5 @@
|
||||
; RUN: opt -passes='loop(unswitch),verify<loops>' -S < %s | FileCheck %s
|
||||
; RUN: opt -verify-memoryssa -passes='loop-mssa(unswitch),verify<loops>' -S < %s | FileCheck %s
|
||||
; RUN: opt -passes='loop(simple-loop-unswitch),verify<loops>' -S < %s | FileCheck %s
|
||||
; RUN: opt -verify-memoryssa -passes='loop-mssa(simple-loop-unswitch),verify<loops>' -S < %s | FileCheck %s
|
||||
|
||||
declare void @incf()
|
||||
declare void @decf()
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
; RUN: opt -passes='loop(unswitch),verify<loops>' -S < %s | FileCheck %s
|
||||
; RUN: opt -verify-memoryssa -passes='loop-mssa(unswitch),verify<loops>' -S < %s | FileCheck %s
|
||||
; RUN: opt -passes='loop(simple-loop-unswitch),verify<loops>' -S < %s | FileCheck %s
|
||||
; RUN: opt -verify-memoryssa -passes='loop-mssa(simple-loop-unswitch),verify<loops>' -S < %s | FileCheck %s
|
||||
|
||||
define i32 @test(i32* %A, i1 %C) {
|
||||
entry:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
; REQUIRES: asserts
|
||||
; RUN: opt < %s -passes='unswitch<nontrivial>' -disable-output
|
||||
; RUN: opt < %s -passes='simple-loop-unswitch<nontrivial>' -disable-output
|
||||
; RUN: opt < %s -simple-loop-unswitch -enable-nontrivial-unswitch -disable-output
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
; RUN: opt < %s -simple-loop-unswitch -enable-nontrivial-unswitch -S 2>&1 | FileCheck %s
|
||||
; RUN: opt < %s -passes='unswitch<nontrivial>' -S 2>&1 | FileCheck %s
|
||||
; RUN: opt < %s -passes='loop-mssa(unswitch<nontrivial>)' -S 2>&1 | FileCheck %s
|
||||
; RUN: opt < %s -passes='simple-loop-unswitch<nontrivial>' -S 2>&1 | FileCheck %s
|
||||
; RUN: opt < %s -passes='loop-mssa(simple-loop-unswitch<nontrivial>)' -S 2>&1 | FileCheck %s
|
||||
;
|
||||
; Checking that (dead) blocks from inner loop are deleted after unswitch.
|
||||
;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt -passes='loop-mssa(unswitch<nontrivial>),loop-mssa(unswitch<nontrivial>),verify<loops>' -S < %s | FileCheck %s
|
||||
; RUN: opt -passes='loop-mssa(simple-loop-unswitch<nontrivial>),loop-mssa(simple-loop-unswitch<nontrivial>),verify<loops>' -S < %s | FileCheck %s
|
||||
|
||||
; Below bugs have caused endless unswitch.
|
||||
;
|
||||
|
||||
@@ -4,19 +4,19 @@
|
||||
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=true \
|
||||
; RUN: -unswitch-num-initial-unscaled-candidates=0 -unswitch-siblings-toplevel-div=1 \
|
||||
; RUN: -passes='loop(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
; RUN: -passes='loop(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=true \
|
||||
; RUN: -unswitch-num-initial-unscaled-candidates=0 -unswitch-siblings-toplevel-div=16 \
|
||||
; RUN: -passes='loop(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
; RUN: -passes='loop(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=true \
|
||||
; RUN: -unswitch-num-initial-unscaled-candidates=0 -unswitch-siblings-toplevel-div=1 \
|
||||
; RUN: -passes='loop-mssa(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
; RUN: -passes='loop-mssa(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=true \
|
||||
; RUN: -unswitch-num-initial-unscaled-candidates=0 -unswitch-siblings-toplevel-div=16 \
|
||||
; RUN: -passes='loop-mssa(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
; RUN: -passes='loop-mssa(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
;
|
||||
; When we relax the candidates part of a multiplier formula
|
||||
; (unscaled candidates == 4) we start getting some unswitches,
|
||||
@@ -24,12 +24,12 @@
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=true \
|
||||
; RUN: -unswitch-num-initial-unscaled-candidates=4 -unswitch-siblings-toplevel-div=1 \
|
||||
; RUN: -passes='loop(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | \
|
||||
; RUN: -passes='loop(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | \
|
||||
; RUN: sort -b -k 1 | FileCheck %s --check-prefixes=LOOP-UNSCALE4-DIV1
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=true \
|
||||
; RUN: -unswitch-num-initial-unscaled-candidates=4 -unswitch-siblings-toplevel-div=1 \
|
||||
; RUN: -passes='loop-mssa(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | \
|
||||
; RUN: -passes='loop-mssa(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | \
|
||||
; RUN: sort -b -k 1 | FileCheck %s --check-prefixes=LOOP-UNSCALE4-DIV1
|
||||
;
|
||||
; NB: sort -b is essential here and below, otherwise blanks might lead to different
|
||||
@@ -37,12 +37,12 @@
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=true \
|
||||
; RUN: -unswitch-num-initial-unscaled-candidates=4 -unswitch-siblings-toplevel-div=2 \
|
||||
; RUN: -passes='loop(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | \
|
||||
; RUN: -passes='loop(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | \
|
||||
; RUN: sort -b -k 1 | FileCheck %s --check-prefixes=LOOP-UNSCALE4-DIV2
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=true \
|
||||
; RUN: -unswitch-num-initial-unscaled-candidates=4 -unswitch-siblings-toplevel-div=2 \
|
||||
; RUN: -passes='loop-mssa(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | \
|
||||
; RUN: -passes='loop-mssa(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | \
|
||||
; RUN: sort -b -k 1 | FileCheck %s --check-prefixes=LOOP-UNSCALE4-DIV2
|
||||
;
|
||||
; Get
|
||||
@@ -50,11 +50,11 @@
|
||||
; loop nests when cost multiplier is disabled:
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=false \
|
||||
; RUN: -passes='loop(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | \
|
||||
; RUN: -passes='loop(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | \
|
||||
; RUN: sort -b -k 1 | FileCheck %s --check-prefixes=LOOP32
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=false \
|
||||
; RUN: -passes='loop-mssa(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | \
|
||||
; RUN: -passes='loop-mssa(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | \
|
||||
; RUN: sort -b -k 1 | FileCheck %s --check-prefixes=LOOP32
|
||||
;
|
||||
; Single loop nest, not unswitched
|
||||
|
||||
+10
-10
@@ -9,19 +9,19 @@
|
||||
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=true \
|
||||
; RUN: -unswitch-num-initial-unscaled-candidates=0 -unswitch-siblings-toplevel-div=1 \
|
||||
; RUN: -passes='loop(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
; RUN: -passes='loop(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=true \
|
||||
; RUN: -unswitch-num-initial-unscaled-candidates=0 -unswitch-siblings-toplevel-div=16 \
|
||||
; RUN: -passes='loop(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
; RUN: -passes='loop(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=true \
|
||||
; RUN: -unswitch-num-initial-unscaled-candidates=0 -unswitch-siblings-toplevel-div=1 \
|
||||
; RUN: -passes='loop-mssa(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
; RUN: -passes='loop-mssa(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=true \
|
||||
; RUN: -unswitch-num-initial-unscaled-candidates=0 -unswitch-siblings-toplevel-div=16 \
|
||||
; RUN: -passes='loop-mssa(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
; RUN: -passes='loop-mssa(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
;
|
||||
; When we relax the candidates part of a multiplier formula
|
||||
; When we relax the candidates part of a multiplier formula
|
||||
@@ -30,12 +30,12 @@
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=true \
|
||||
; RUN: -unswitch-num-initial-unscaled-candidates=3 -unswitch-siblings-toplevel-div=1 \
|
||||
; RUN: -passes='loop(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | \
|
||||
; RUN: -passes='loop(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | \
|
||||
; RUN: sort -b -k 1 | FileCheck %s --check-prefixes=LOOP-UNSCALE3-DIV1
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=true \
|
||||
; RUN: -unswitch-num-initial-unscaled-candidates=3 -unswitch-siblings-toplevel-div=1 \
|
||||
; RUN: -passes='loop-mssa(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | \
|
||||
; RUN: -passes='loop-mssa(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | \
|
||||
; RUN: sort -b -k 1 | FileCheck %s --check-prefixes=LOOP-UNSCALE3-DIV1
|
||||
;
|
||||
; NB: sort -b is essential here and below, otherwise blanks might lead to different
|
||||
@@ -43,22 +43,22 @@
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=true \
|
||||
; RUN: -unswitch-num-initial-unscaled-candidates=3 -unswitch-siblings-toplevel-div=2 \
|
||||
; RUN: -passes='loop(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | \
|
||||
; RUN: -passes='loop(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | \
|
||||
; RUN: sort -b -k 1 | FileCheck %s --check-prefixes=LOOP-UNSCALE3-DIV2
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=true \
|
||||
; RUN: -unswitch-num-initial-unscaled-candidates=3 -unswitch-siblings-toplevel-div=2 \
|
||||
; RUN: -passes='loop-mssa(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | \
|
||||
; RUN: -passes='loop-mssa(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | \
|
||||
; RUN: sort -b -k 1 | FileCheck %s --check-prefixes=LOOP-UNSCALE3-DIV2
|
||||
;
|
||||
; With disabled cost-multiplier we get maximal possible amount of unswitches.
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=false \
|
||||
; RUN: -passes='loop(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | \
|
||||
; RUN: -passes='loop(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | \
|
||||
; RUN: sort -b -k 1 | FileCheck %s --check-prefixes=LOOP-MAX
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=false \
|
||||
; RUN: -passes='loop-mssa(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | \
|
||||
; RUN: -passes='loop-mssa(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | \
|
||||
; RUN: sort -b -k 1 | FileCheck %s --check-prefixes=LOOP-MAX
|
||||
;
|
||||
; Single loop nest, not unswitched
|
||||
|
||||
@@ -4,19 +4,19 @@
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=true \
|
||||
; RUN: -unswitch-num-initial-unscaled-candidates=0 -unswitch-siblings-toplevel-div=1 \
|
||||
; RUN: -passes='loop(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
; RUN: -passes='loop(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=true \
|
||||
; RUN: -unswitch-num-initial-unscaled-candidates=0 -unswitch-siblings-toplevel-div=8 \
|
||||
; RUN: -passes='loop(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
; RUN: -passes='loop(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=true \
|
||||
; RUN: -unswitch-num-initial-unscaled-candidates=0 -unswitch-siblings-toplevel-div=1 \
|
||||
; RUN: -passes='loop-mssa(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
; RUN: -passes='loop-mssa(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=true \
|
||||
; RUN: -unswitch-num-initial-unscaled-candidates=0 -unswitch-siblings-toplevel-div=8 \
|
||||
; RUN: -passes='loop-mssa(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
; RUN: -passes='loop-mssa(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
;
|
||||
; With relaxed candidates multiplier (unscaled candidates == 8) we should allow
|
||||
; some unswitches to happen until siblings multiplier starts kicking in:
|
||||
@@ -25,11 +25,11 @@
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=true \
|
||||
; RUN: -unswitch-num-initial-unscaled-candidates=8 -unswitch-siblings-toplevel-div=1 \
|
||||
; RUN: -passes='loop(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP5
|
||||
; RUN: -passes='loop(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP5
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=true \
|
||||
; RUN: -unswitch-num-initial-unscaled-candidates=8 -unswitch-siblings-toplevel-div=1 \
|
||||
; RUN: -passes='loop-mssa(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP5
|
||||
; RUN: -passes='loop-mssa(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP5
|
||||
;
|
||||
; With relaxed candidates multiplier (unscaled candidates == 8) and with relaxed
|
||||
; siblings multiplier for top-level loops (toplevel-div == 8) we should get
|
||||
@@ -38,21 +38,21 @@
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=true \
|
||||
; RUN: -unswitch-num-initial-unscaled-candidates=8 -unswitch-siblings-toplevel-div=8 \
|
||||
; RUN: -passes='loop(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP32
|
||||
; RUN: -passes='loop(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP32
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=true \
|
||||
; RUN: -unswitch-num-initial-unscaled-candidates=8 -unswitch-siblings-toplevel-div=8 \
|
||||
; RUN: -passes='loop-mssa(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP32
|
||||
; RUN: -passes='loop-mssa(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP32
|
||||
;
|
||||
; Similarly get
|
||||
; 2^(num conds) == 2^5 == 32
|
||||
; copies of the loop when cost multiplier is disabled:
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=false \
|
||||
; RUN: -passes='loop(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP32
|
||||
; RUN: -passes='loop(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP32
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=false \
|
||||
; RUN: -passes='loop-mssa(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP32
|
||||
; RUN: -passes='loop-mssa(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP32
|
||||
;
|
||||
; Single loop, not unswitched
|
||||
; LOOP1: Loop at depth 1 containing:
|
||||
|
||||
@@ -6,42 +6,42 @@
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=true \
|
||||
; RUN: -unswitch-num-initial-unscaled-candidates=0 -unswitch-siblings-toplevel-div=1 \
|
||||
; RUN: -passes='loop(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
; RUN: -passes='loop(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=true \
|
||||
; RUN: -unswitch-num-initial-unscaled-candidates=0 -unswitch-siblings-toplevel-div=8 \
|
||||
; RUN: -passes='loop(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
; RUN: -passes='loop(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=true \
|
||||
; RUN: -unswitch-num-initial-unscaled-candidates=8 -unswitch-siblings-toplevel-div=1 \
|
||||
; RUN: -passes='loop(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
; RUN: -passes='loop(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=true \
|
||||
; RUN: -unswitch-num-initial-unscaled-candidates=8 -unswitch-siblings-toplevel-div=8 \
|
||||
; RUN: -passes='loop(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
; RUN: -passes='loop(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=false \
|
||||
; RUN: -passes='loop(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
; RUN: -passes='loop(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
;
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=true \
|
||||
; RUN: -unswitch-num-initial-unscaled-candidates=0 -unswitch-siblings-toplevel-div=1 \
|
||||
; RUN: -passes='loop-mssa(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
; RUN: -passes='loop-mssa(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=true \
|
||||
; RUN: -unswitch-num-initial-unscaled-candidates=0 -unswitch-siblings-toplevel-div=8 \
|
||||
; RUN: -passes='loop-mssa(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
; RUN: -passes='loop-mssa(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=true \
|
||||
; RUN: -unswitch-num-initial-unscaled-candidates=8 -unswitch-siblings-toplevel-div=1 \
|
||||
; RUN: -passes='loop-mssa(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
; RUN: -passes='loop-mssa(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=true \
|
||||
; RUN: -unswitch-num-initial-unscaled-candidates=8 -unswitch-siblings-toplevel-div=8 \
|
||||
; RUN: -passes='loop-mssa(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
; RUN: -passes='loop-mssa(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=false \
|
||||
; RUN: -passes='loop-mssa(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
; RUN: -passes='loop-mssa(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
;
|
||||
;
|
||||
; Single loop, not unswitched
|
||||
|
||||
@@ -11,31 +11,31 @@
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=true \
|
||||
; RUN: -unswitch-num-initial-unscaled-candidates=0 -unswitch-siblings-toplevel-div=1 \
|
||||
; RUN: -passes='loop(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
; RUN: -passes='loop(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=true \
|
||||
; RUN: -unswitch-num-initial-unscaled-candidates=0 -unswitch-siblings-toplevel-div=16 \
|
||||
; RUN: -passes='loop(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
; RUN: -passes='loop(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=true \
|
||||
; RUN: -unswitch-num-initial-unscaled-candidates=0 -unswitch-siblings-toplevel-div=1 \
|
||||
; RUN: -passes='loop-mssa(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
; RUN: -passes='loop-mssa(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=true \
|
||||
; RUN: -unswitch-num-initial-unscaled-candidates=0 -unswitch-siblings-toplevel-div=16 \
|
||||
; RUN: -passes='loop-mssa(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
; RUN: -passes='loop-mssa(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | FileCheck %s --check-prefixes=LOOP1
|
||||
;
|
||||
; With relaxed candidates multiplier (unscaled candidates == 8) we should allow
|
||||
; some unswitches to happen until siblings multiplier starts kicking in:
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=true \
|
||||
; RUN: -unswitch-num-initial-unscaled-candidates=8 -unswitch-siblings-toplevel-div=1 \
|
||||
; RUN: -passes='loop(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | \
|
||||
; RUN: -passes='loop(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | \
|
||||
; RUN: sort -b -k 1 | FileCheck %s --check-prefixes=LOOP-RELAX
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=true \
|
||||
; RUN: -unswitch-num-initial-unscaled-candidates=8 -unswitch-siblings-toplevel-div=1 \
|
||||
; RUN: -passes='loop-mssa(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | \
|
||||
; RUN: -passes='loop-mssa(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | \
|
||||
; RUN: sort -b -k 1 | FileCheck %s --check-prefixes=LOOP-RELAX
|
||||
;
|
||||
; With relaxed candidates multiplier (unscaled candidates == 8) and with relaxed
|
||||
@@ -44,22 +44,22 @@
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=true \
|
||||
; RUN: -unswitch-num-initial-unscaled-candidates=8 -unswitch-siblings-toplevel-div=8 \
|
||||
; RUN: -passes='loop(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | \
|
||||
; RUN: -passes='loop(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | \
|
||||
; RUN: sort -b -k 1 | FileCheck %s --check-prefixes=LOOP-RELAX2
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=true \
|
||||
; RUN: -unswitch-num-initial-unscaled-candidates=8 -unswitch-siblings-toplevel-div=8 \
|
||||
; RUN: -passes='loop-mssa(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | \
|
||||
; RUN: -passes='loop-mssa(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | \
|
||||
; RUN: sort -b -k 1 | FileCheck %s --check-prefixes=LOOP-RELAX2
|
||||
;
|
||||
; We get hundreds of copies of the loop when cost multiplier is disabled:
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=false \
|
||||
; RUN: -passes='loop(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | \
|
||||
; RUN: -passes='loop(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | \
|
||||
; RUN: sort -b -k 1 | FileCheck %s --check-prefixes=LOOP-MAX
|
||||
;
|
||||
; RUN: opt < %s -enable-unswitch-cost-multiplier=false \
|
||||
; RUN: -passes='loop-mssa(unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | \
|
||||
; RUN: -passes='loop-mssa(simple-loop-unswitch<nontrivial>),print<loops>' -disable-output 2>&1 | \
|
||||
; RUN: sort -b -k 1 | FileCheck %s --check-prefixes=LOOP-MAX
|
||||
|
||||
; Single loop nest, not unswitched
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
; RUN: opt -passes='loop(unswitch<nontrivial>),verify<loops>' -simple-loop-unswitch-guards -S < %s | FileCheck %s
|
||||
; RUN: opt -passes='loop(simple-loop-unswitch<nontrivial>),verify<loops>' -simple-loop-unswitch-guards -S < %s | FileCheck %s
|
||||
; RUN: opt -simple-loop-unswitch -enable-nontrivial-unswitch -simple-loop-unswitch-guards -S < %s | FileCheck %s
|
||||
; RUN: opt -passes='loop-mssa(unswitch<nontrivial>),verify<loops>' -simple-loop-unswitch-guards -verify-memoryssa -S < %s | FileCheck %s
|
||||
; RUN: opt -passes='loop-mssa(simple-loop-unswitch<nontrivial>),verify<loops>' -simple-loop-unswitch-guards -verify-memoryssa -S < %s | FileCheck %s
|
||||
|
||||
declare void @llvm.experimental.guard(i1, ...)
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt -enable-nontrivial-unswitch=true -simple-loop-unswitch -S < %s | FileCheck %s
|
||||
; RUN: opt -enable-nontrivial-unswitch=true -passes='loop(unswitch),verify<loops>' -S < %s | FileCheck %s
|
||||
; RUN: opt -enable-nontrivial-unswitch=true -passes='loop(simple-loop-unswitch),verify<loops>' -S < %s | FileCheck %s
|
||||
|
||||
declare void @may_exit()
|
||||
declare void @throw_npe()
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
; RUN: opt -passes='loop(unswitch),verify<loops>' -S < %s | FileCheck %s
|
||||
; RUN: opt -verify-memoryssa -passes='loop-mssa(unswitch),verify<loops>' -S < %s | FileCheck %s
|
||||
; RUN: opt -passes='loop(simple-loop-unswitch),verify<loops>' -S < %s | FileCheck %s
|
||||
; RUN: opt -verify-memoryssa -passes='loop-mssa(simple-loop-unswitch),verify<loops>' -S < %s | FileCheck %s
|
||||
|
||||
declare void @unknown()
|
||||
declare void @unknown2()
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
; Specifically exercise the cost modeling for non-trivial loop unswitching.
|
||||
;
|
||||
; RUN: opt -passes='loop(unswitch<nontrivial>),verify<loops>' -unswitch-threshold=5 -S < %s | FileCheck %s
|
||||
; RUN: opt -passes='loop-mssa(unswitch<nontrivial>),verify<loops>' -unswitch-threshold=5 -S < %s | FileCheck %s
|
||||
; RUN: opt -passes='loop(simple-loop-unswitch<nontrivial>),verify<loops>' -unswitch-threshold=5 -S < %s | FileCheck %s
|
||||
; RUN: opt -passes='loop-mssa(simple-loop-unswitch<nontrivial>),verify<loops>' -unswitch-threshold=5 -S < %s | FileCheck %s
|
||||
; RUN: opt -simple-loop-unswitch -enable-nontrivial-unswitch -unswitch-threshold=5 -S < %s | FileCheck %s
|
||||
; RUN: opt -simple-loop-unswitch -enable-nontrivial-unswitch -unswitch-threshold=5 -enable-mssa-loop-dependency=true -verify-memoryssa -S < %s | FileCheck %s
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
; REQUIRES: asserts
|
||||
; RUN: opt -passes='unswitch<nontrivial>' -disable-output -S < %s
|
||||
; RUN: opt -passes='loop-mssa(unswitch<nontrivial>)' -disable-output -S < %s
|
||||
; RUN: opt -passes='simple-loop-unswitch<nontrivial>' -disable-output -S < %s
|
||||
; RUN: opt -passes='loop-mssa(simple-loop-unswitch<nontrivial>)' -disable-output -S < %s
|
||||
; RUN: opt -simple-loop-unswitch -enable-nontrivial-unswitch -disable-output -S < %s
|
||||
|
||||
; This loop shouldn't trigger asserts in SimpleLoopUnswitch.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
; RUN: opt -passes='loop(unswitch<nontrivial>),verify<loops>' -S < %s | FileCheck %s
|
||||
; RUN: opt -passes='loop-mssa(unswitch<nontrivial>),verify<loops>' -S < %s | FileCheck %s
|
||||
; RUN: opt -passes='loop(simple-loop-unswitch<nontrivial>),verify<loops>' -S < %s | FileCheck %s
|
||||
; RUN: opt -passes='loop-mssa(simple-loop-unswitch<nontrivial>),verify<loops>' -S < %s | FileCheck %s
|
||||
; RUN: opt -simple-loop-unswitch -enable-nontrivial-unswitch -S < %s | FileCheck %s
|
||||
; RUN: opt -simple-loop-unswitch -enable-nontrivial-unswitch -enable-mssa-loop-dependency=true -verify-memoryssa -S < %s | FileCheck %s
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt -passes='unswitch<nontrivial>' %s -S | FileCheck %s
|
||||
; RUN: opt -passes='simple-loop-unswitch<nontrivial>' %s -S | FileCheck %s
|
||||
|
||||
declare i1 @foo()
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
; RUN: opt -loop-unswitch-memoryssa-threshold=0 -memssa-check-limit=1 -passes='loop-mssa(unswitch<nontrivial>),verify<loops>' -S < %s | FileCheck --check-prefix=THRESHOLD-0 %s
|
||||
; RUN: opt -memssa-check-limit=1 -passes='loop-mssa(unswitch<nontrivial>),verify<loops>' -S < %s | FileCheck --check-prefix=THRESHOLD-DEFAULT %s
|
||||
; RUN: opt -loop-unswitch-memoryssa-threshold=0 -memssa-check-limit=1 -passes='loop-mssa(simple-loop-unswitch<nontrivial>),verify<loops>' -S < %s | FileCheck --check-prefix=THRESHOLD-0 %s
|
||||
; RUN: opt -memssa-check-limit=1 -passes='loop-mssa(simple-loop-unswitch<nontrivial>),verify<loops>' -S < %s | FileCheck --check-prefix=THRESHOLD-DEFAULT %s
|
||||
|
||||
; Make sure -loop-unswitch-memoryssa-threshold works. The test uses
|
||||
; -memssa-check-limit=1 to effectively disable any MemorySSA optimizations
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
; RUN: opt -passes='loop-mssa(unswitch<nontrivial>),verify<loops>' -verify-dom-info -verify-memoryssa -S %s | FileCheck %s
|
||||
; RUN: opt -passes='loop-mssa(unswitch<nontrivial>),verify<loops>' -memssa-check-limit=3 -verify-dom-info -verify-memoryssa -S %s | FileCheck %s
|
||||
; RUN: opt -passes='loop-mssa(simple-loop-unswitch<nontrivial>),verify<loops>' -verify-dom-info -verify-memoryssa -S %s | FileCheck %s
|
||||
; RUN: opt -passes='loop-mssa(simple-loop-unswitch<nontrivial>),verify<loops>' -memssa-check-limit=3 -verify-dom-info -verify-memoryssa -S %s | FileCheck %s
|
||||
|
||||
declare void @clobber()
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt -passes='loop-mssa(unswitch<nontrivial>),verify<loops>' -S < %s | FileCheck %s
|
||||
; RUN: opt -passes='loop-mssa(simple-loop-unswitch<nontrivial>),verify<loops>' -S < %s | FileCheck %s
|
||||
|
||||
declare void @clobber()
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
; RUN: opt -passes='loop(loop-instsimplify,loop-simplifycfg,unswitch),verify<loops>' -S < %s | FileCheck %s
|
||||
; RUN: opt -verify-memoryssa -passes='loop-mssa(loop-instsimplify,loop-simplifycfg,unswitch),verify<loops>' -S < %s | FileCheck %s
|
||||
; RUN: opt -passes='loop(loop-instsimplify,loop-simplifycfg,simple-loop-unswitch),verify<loops>' -S < %s | FileCheck %s
|
||||
; RUN: opt -verify-memoryssa -passes='loop-mssa(loop-instsimplify,loop-simplifycfg,simple-loop-unswitch),verify<loops>' -S < %s | FileCheck %s
|
||||
|
||||
declare void @some_func() noreturn
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; then metadata checks MDn were added manually.
|
||||
; RUN: opt -passes='loop(unswitch),verify<loops>' -S < %s | FileCheck %s
|
||||
; RUN: opt -verify-memoryssa -passes='loop-mssa(unswitch),verify<loops>' -S < %s | FileCheck %s
|
||||
; RUN: opt -passes='loop(simple-loop-unswitch),verify<loops>' -S < %s | FileCheck %s
|
||||
; RUN: opt -verify-memoryssa -passes='loop-mssa(simple-loop-unswitch),verify<loops>' -S < %s | FileCheck %s
|
||||
|
||||
declare void @some_func()
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
; RUN: opt -passes='loop(unswitch),verify<loops>' -S < %s | FileCheck %s
|
||||
; RUN: opt -verify-memoryssa -passes='loop-mssa(unswitch),verify<loops>' -S < %s | FileCheck %s
|
||||
; RUN: opt -passes='loop(simple-loop-unswitch),verify<loops>' -S < %s | FileCheck %s
|
||||
; RUN: opt -verify-memoryssa -passes='loop-mssa(simple-loop-unswitch),verify<loops>' -S < %s | FileCheck %s
|
||||
|
||||
declare void @some_func() noreturn
|
||||
declare void @sink(i32)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
; RUN: opt -passes='print<scalar-evolution>,loop(unswitch<nontrivial>,loop-instsimplify),print<scalar-evolution>' -S < %s 2>%t.scev | FileCheck %s
|
||||
; RUN: opt -verify-memoryssa -passes='print<scalar-evolution>,loop-mssa(unswitch<nontrivial>,loop-instsimplify),print<scalar-evolution>' -S < %s 2>%t.scev | FileCheck %s
|
||||
; RUN: opt -passes='print<scalar-evolution>,loop(simple-loop-unswitch<nontrivial>,loop-instsimplify),print<scalar-evolution>' -S < %s 2>%t.scev | FileCheck %s
|
||||
; RUN: opt -verify-memoryssa -passes='print<scalar-evolution>,loop-mssa(simple-loop-unswitch<nontrivial>,loop-instsimplify),print<scalar-evolution>' -S < %s 2>%t.scev | FileCheck %s
|
||||
; RUN: FileCheck %s --check-prefix=SCEV < %t.scev
|
||||
|
||||
target triple = "x86_64-unknown-linux-gnu"
|
||||
|
||||
Reference in new issue
Block a user