[llvm] 3d12e79 - [NewPM][LSR] Rename strength-reduce -> loop-reduce
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 2 11:15:51 PDT 2020
Author: Arthur Eubanks
Date: 2020-07-02T11:15:29-07:00
New Revision: 3d12e79094d2d3cb3d7e16dc16a456e1ec25ac1b
URL: https://github.com/llvm/llvm-project/commit/3d12e79094d2d3cb3d7e16dc16a456e1ec25ac1b
DIFF: https://github.com/llvm/llvm-project/commit/3d12e79094d2d3cb3d7e16dc16a456e1ec25ac1b.diff
LOG: [NewPM][LSR] Rename strength-reduce -> loop-reduce
The legacy pass was called "loop-reduce".
This lowers the number of check-llvm failures under NPM by 83.
Reviewed By: ychen
Differential Revision: https://reviews.llvm.org/D82925
Added:
Modified:
llvm/lib/FuzzMutate/FuzzerCLI.cpp
llvm/lib/Passes/PassRegistry.def
llvm/test/Analysis/ScalarEvolution/depth-limit-overrun.ll
llvm/test/Transforms/LoopStrengthReduce/ivchain.ll
Removed:
################################################################################
diff --git a/llvm/lib/FuzzMutate/FuzzerCLI.cpp b/llvm/lib/FuzzMutate/FuzzerCLI.cpp
index 32eba275da7b..be0d5bfcab46 100644
--- a/llvm/lib/FuzzMutate/FuzzerCLI.cpp
+++ b/llvm/lib/FuzzMutate/FuzzerCLI.cpp
@@ -111,7 +111,7 @@ void llvm::handleExecNameEncodedOptimizerOpts(StringRef ExecName) {
} 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");
diff --git a/llvm/lib/Passes/PassRegistry.def b/llvm/lib/Passes/PassRegistry.def
index 0323720415f3..a28f6f9d6c3e 100644
--- a/llvm/lib/Passes/PassRegistry.def
+++ b/llvm/lib/Passes/PassRegistry.def
@@ -331,7 +331,7 @@ LOOP_PASS("no-op-loop", NoOpLoopPass())
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()))
diff --git a/llvm/test/Analysis/ScalarEvolution/depth-limit-overrun.ll b/llvm/test/Analysis/ScalarEvolution/depth-limit-overrun.ll
index 0772307428aa..f9afc952464f 100644
--- a/llvm/test/Analysis/ScalarEvolution/depth-limit-overrun.ll
+++ b/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.
diff --git a/llvm/test/Transforms/LoopStrengthReduce/ivchain.ll b/llvm/test/Transforms/LoopStrengthReduce/ivchain.ll
index 52faddea94a3..875ea2c3882b 100644
--- a/llvm/test/Transforms/LoopStrengthReduce/ivchain.ll
+++ b/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.
More information about the llvm-commits
mailing list