[llvm] [RISCV] Set the exact flag on the SRL created for converting vscale to a read of vlenb. (PR #144571)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 17 15:07:35 PDT 2025
================
@@ -7360,20 +7360,25 @@ SDValue RISCVTargetLowering::LowerOperation(SDValue Op,
uint64_t Val = Op.getConstantOperandVal(0);
if (isPowerOf2_64(Val)) {
uint64_t Log2 = Log2_64(Val);
- if (Log2 < 3)
+ if (Log2 < 3) {
+ SDNodeFlags Flags;
+ Flags.setExact(true);
----------------
topperc wrote:
I forgot to pass the Flags to getNode. New patch coming as soon as tests finish.
https://github.com/llvm/llvm-project/pull/144571
More information about the llvm-commits
mailing list