[llvm] [RISCV] Set the exact flag on the SRL created for converting vscale to a read of vlenb. (PR #144571)

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 17 10:53:13 PDT 2025


================
@@ -7372,8 +7372,11 @@ SDValue RISCVTargetLowering::LowerOperation(SDValue Op,
       Res = DAG.getNode(ISD::MUL, DL, XLenVT, Res,
                         DAG.getConstant(Val / 8, DL, XLenVT));
     } else {
+      SDNodeFlags Flags;
----------------
preames wrote:

Shouldn't the same logic apply to the SRL case above?

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


More information about the llvm-commits mailing list