[PATCH] D132322: [AArch64][SelectionDAG] Optimize multiplication by constant
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 20 18:56:44 PDT 2022
craig.topper 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() ||
----------------
Is this copied from RISC-V? That doesn't look like an AArch64 instruction name
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132322/new/
https://reviews.llvm.org/D132322
More information about the llvm-commits
mailing list