[llvm] [RISCV] Match prefetch address with offset (PR #66072)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 16 12:53:55 PDT 2023
================
@@ -2441,6 +2441,22 @@ bool RISCVDAGToDAGISel::SelectAddrRegImm(SDValue Addr, SDValue &Base,
return true;
}
+bool RISCVDAGToDAGISel::SelectAddrRegImmLsb00000(SDValue Addr, SDValue &Base,
+ SDValue &Offset) {
+
+ bool Found = SelectAddrRegImm(Addr, Base, Offset);
----------------
topperc wrote:
I'm not sure we should use SelectAddrRegImm here. It creates new nodes for some cases, but then we might decide not to use them. I think we should directly handle the cases we want to handle.
https://github.com/llvm/llvm-project/pull/66072
More information about the llvm-commits
mailing list