Ideally, add operand with smaller shift should be RHS. In that way, smaller-shift is folded into ADD.
- Also add another test case when 'lsl(val1,small-shift)' has one than one use, to show the (planned) optimization won't regress this case.
Differential D135194
[AArch64][NFC] Precommit test case to show sub-optimal codegen for add(lsl(val1,small-shift), lsl(val2,large-shift)). mingmingl on Oct 4 2022, 1:59 PM. Authored by
Details
Ideally, add operand with smaller shift should be RHS. In that way, smaller-shift is folded into ADD.
Diff Detail Event Timeline |