[PATCH] D82925: [NewPM][LSR] Rename strength-reduce -> loop-reduce
Arthur Eubanks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 30 16:50:57 PDT 2020
aeubanks created this revision.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
aeubanks retitled this revision from "[NewPM] Rename strength-reduce -> loop-reduce" to "[NewPM][LSR] Rename strength-reduce -> loop-reduce".
aeubanks added reviewers: greened, ychen, asbirlea.
The legacy pass was called "loop-reduce".
This lowers the number of check-llvm failures under NPM by 83.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D82925
Files:
llvm/lib/FuzzMutate/FuzzerCLI.cpp
llvm/lib/Passes/PassRegistry.def
llvm/test/Analysis/ScalarEvolution/depth-limit-overrun.ll
llvm/test/Transforms/LoopStrengthReduce/ivchain.ll
Index: llvm/test/Transforms/LoopStrengthReduce/ivchain.ll
===================================================================
--- llvm/test/Transforms/LoopStrengthReduce/ivchain.ll
+++ llvm/test/Transforms/LoopStrengthReduce/ivchain.ll
@@ -1,5 +1,5 @@
; RUN: opt < %s -loop-reduce -S | FileCheck %s
-; RUN: opt -passes='require<scalar-evolution>,require<targetir>,loop(strength-reduce)' < %s -S | FileCheck %s
+; RUN: opt -passes='require<scalar-evolution>,require<targetir>,loop(loop-reduce)' < %s -S | FileCheck %s
;
; PR11782: bad cast to AddRecExpr.
; A sign extend feeds an IVUser and cannot be hoisted into the AddRec.
Index: llvm/test/Analysis/ScalarEvolution/depth-limit-overrun.ll
===================================================================
--- llvm/test/Analysis/ScalarEvolution/depth-limit-overrun.ll
+++ llvm/test/Analysis/ScalarEvolution/depth-limit-overrun.ll
@@ -1,4 +1,4 @@
-; RUN: opt -passes 'strength-reduce' -scalar-evolution-max-arith-depth=2 -S < %s | FileCheck %s
+; RUN: opt -passes 'loop-reduce' -scalar-evolution-max-arith-depth=2 -S < %s | FileCheck %s
; RUN: opt -loop-reduce -scalar-evolution-max-arith-depth=2 -S < %s | FileCheck %s
; This test should just compile cleanly without assertions.
Index: llvm/lib/Passes/PassRegistry.def
===================================================================
--- llvm/lib/Passes/PassRegistry.def
+++ llvm/lib/Passes/PassRegistry.def
@@ -331,7 +331,7 @@
LOOP_PASS("print", PrintLoopPass(dbgs()))
LOOP_PASS("loop-deletion", LoopDeletionPass())
LOOP_PASS("simplify-cfg", LoopSimplifyCFGPass())
-LOOP_PASS("strength-reduce", LoopStrengthReducePass())
+LOOP_PASS("loop-reduce", LoopStrengthReducePass())
LOOP_PASS("indvars", IndVarSimplifyPass())
LOOP_PASS("loop-unroll-full", LoopFullUnrollPass())
LOOP_PASS("print-access-info", LoopAccessInfoPrinterPass(dbgs()))
Index: llvm/lib/FuzzMutate/FuzzerCLI.cpp
===================================================================
--- llvm/lib/FuzzMutate/FuzzerCLI.cpp
+++ llvm/lib/FuzzMutate/FuzzerCLI.cpp
@@ -111,7 +111,7 @@
} else if (Opt == "indvars") {
Args.push_back("-passes=indvars");
} else if (Opt == "strength_reduce") {
- Args.push_back("-passes=strength-reduce");
+ Args.push_back("-passes=loop-reduce");
} else if (Opt == "irce") {
Args.push_back("-passes=irce");
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82925.274650.patch
Type: text/x-patch
Size: 2351 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200630/8ec4749b/attachment.bin>
More information about the llvm-commits
mailing list