This has been present from the original patch, and doesn't appear to be strongly justified. We do need to be careful of commutativity.
Details
Details
Diff Detail
Diff Detail
Event Timeline
llvm/lib/Target/RISCV/RISCVGatherScatterLowering.cpp | ||
---|---|---|
250 | This might have been a hacky way of ensuring that the shift amount was the loop invariant splat part? the code right after the switch assumes the instructions are commutable. |
This might have been a hacky way of ensuring that the shift amount was the loop invariant splat part? the code right after the switch assumes the instructions are commutable.