[llvm] [RISCV] Fold (fmv_x_h/w (load)) to an integer load. (PR #109900)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 25 08:19:12 PDT 2024
================
@@ -16984,6 +16984,17 @@ SDValue RISCVTargetLowering::PerformDAGCombine(SDNode *N,
return Op0.getOperand(0);
}
+ if (ISD::isNormalLoad(Op0.getNode()) && Op0.hasOneUse() &&
----------------
topperc wrote:
I don't know what the offset field in LoadSDNode is for. We don't use it on RISC-V or X86. The immediate offset is represented by a separate ADD node in the base pointer that we pattern match at isel.
https://github.com/llvm/llvm-project/pull/109900
More information about the llvm-commits
mailing list