In GenerateConstantOffsetsImpl, we may generate non canonical
Formula if BaseRegs of that Formula is updated and includes a
recurrent expr reg related with current loop while its ScaledReg
is not.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM, nitpicks below.
llvm/test/Transforms/LoopStrengthReduce/AArch64/pr47329.ll | ||
---|---|---|
1 ↗ | (On Diff #289433) | Could you add a check that we generate something sensible? |
22 ↗ | (On Diff #289433) | Please get rid of the implicit variables (%[0-9]+). (You can use opt -instnamer for that.) |
llvm/test/Transforms/LoopStrengthReduce/AArch64/pr47329.ll | ||
---|---|---|
1 ↗ | (On Diff #289433) | I agree it's not good enough. However, the IR generated with assertions turned off is no difference with the one generated with this fix patch and I can't come up with reasonable checks here. I'd appreciate it if you can give some guidance :) |