mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-10 10:01:42 +00:00
[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
This commit is contained in:
parent
61238d2690
commit
3d12e79094
@ -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");
|
||||
|
||||
|
@ -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()))
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user