Change the costmodel to lower a = b * C where C = -(2^n - 2^m) to
lsl w8, w0, m sub w0, w8, w0, lsl n
Paths
| Differential D134934
[AArch64] Lower multiplication by a negative constant to shl+sub+shl ClosedPublic Authored by Allen on Sep 29 2022, 7:46 PM.
Details Summary Change the costmodel to lower a = b * C where C = -(2^n - 2^m) to lsl w8, w0, m sub w0, w8, w0, lsl n
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Sep 30 2022, 1:22 PM This revision was landed with ongoing or failed builds.Oct 1 2022, 6:29 AM Closed by commit rG4a549be9c367: [AArch64] Lower multiplication by a negative constant to shl+sub+shl (authored by Allen). · Explain Why This revision was automatically updated to reflect the committed changes. Allen marked an inline comment as done. Allen removed a child revision: D135441: [AArch64][SelectionDAG] Lower multiplication by a constant to shl+add+shl+add.Oct 20 2022, 12:56 AM
Revision Contents
Diff 464497 llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/test/CodeGen/AArch64/mul_pow2.ll
|
Fix line wrapping?