[PATCH] D107711: [RISCV] Optimize (add (mul x, c0), c1)
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 8 14:06:51 PDT 2021
craig.topper added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp:537
+ SDNode *NM =
+ CurDAG->getMachineNode(RISCV::MUL, DL, VT, SDValue(NA, 0),
+ N0->getOperand(1));
----------------
What about all the optimizations we have for mul by constant using SHXADD? Won't this miss out on those?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107711/new/
https://reviews.llvm.org/D107711
More information about the llvm-commits
mailing list