diff --git a/llvm/lib/FuzzMutate/FuzzerCLI.cpp b/llvm/lib/FuzzMutate/FuzzerCLI.cpp --- a/llvm/lib/FuzzMutate/FuzzerCLI.cpp +++ b/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"); diff --git a/llvm/lib/Passes/PassRegistry.def b/llvm/lib/Passes/PassRegistry.def --- a/llvm/lib/Passes/PassRegistry.def +++ b/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())) diff --git a/llvm/test/Analysis/ScalarEvolution/depth-limit-overrun.ll b/llvm/test/Analysis/ScalarEvolution/depth-limit-overrun.ll --- 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 --- 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,require,loop(strength-reduce)' < %s -S | FileCheck %s +; RUN: opt -passes='require,require,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.