[PATCH] D132322: [AArch64][SelectionDAG] Optimize multiplication by constant
Allen zhong via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 20 19:25:17 PDT 2022
Allen marked an inline comment as done.
Allen added inline comments.
================
Comment at: llvm/lib/Target/AArch64/AArch64ISelLowering.cpp:13602
+
+ // Optimize the MUL to (SH*ADD x, (SLLI x, bits)).
+ if ((Imm - 2).isPowerOf2() || (Imm - 4).isPowerOf2() ||
----------------
craig.topper wrote:
> Is this copied from RISC-V? That doesn't look like an AArch64 instruction name
yes, I updated comment, thanks @craig.topper
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132322/new/
https://reviews.llvm.org/D132322
More information about the llvm-commits
mailing list