[llvm] [RISCV] Expand constant multiplication for targets without M extension (PR #137195)

Sam Elliott via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 25 21:06:27 PDT 2025


================
@@ -15447,20 +15584,23 @@ static SDValue expandMul(SDNode *N, SelectionDAG &DAG,
   if (DAG.getMachineFunction().getFunction().hasMinSize())
----------------
lenary wrote:

I wonder if this should be `hasOptSize` (Os and Oz) rather than `hasMinSize` (just Oz). I'm not sure when one of these is chosen instead of the other.

https://github.com/llvm/llvm-project/pull/137195


More information about the llvm-commits mailing list