llvm-project/llvm/test/Transforms/LoopStrengthReduce/RISCV
eopXD 10da9844d0 [LSR] Drop LSR solution if it is less profitable than baseline
The LSR may suggest less profitable transformation to the loop. This
patch adds check to prevent LSR from generating worse code than what
we already have.

Since LSR affects nearly all targets, the patch is guarded by the
option 'lsr-drop-solution' and default as disable for now.

The next step should be extending an TTI interface to allow target(s)
to enable this enhancememnt.

Debug log is added to remind user of such choice to skip the LSR
solution.

Reviewed By: Meinersbur, #loopoptwg

Differential Revision: https://reviews.llvm.org/D126043
2022-10-27 10:13:57 -07:00
..
icmp-zero.ll [LSR] Allow already invariant operand for ICmpZero matching [try 2] 2022-07-15 13:29:43 -07:00
lit.local.cfg
lsr-drop-solution-dbg-msg.ll [LSR] Drop LSR solution if it is less profitable than baseline 2022-10-27 10:13:57 -07:00
lsr-drop-solution.ll [LSR] Drop LSR solution if it is less profitable than baseline 2022-10-27 10:13:57 -07:00