[llvm] [RISCV] Remove incomplete PRE_DEC/POST_DEC code for XTHeadMemIdx. (PR #76922)
Philipp Tomsich via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 4 04:31:21 PST 2024
================
@@ -19288,7 +19287,8 @@ bool RISCVTargetLowering::getIndexedAddressParts(SDNode *Op, SDValue &Base,
if (!isLegalIndexedOffset)
return false;
- IsInc = (Op->getOpcode() == ISD::ADD);
+ // Constant for SUB was negated earlier.
+ IsInc = true;
----------------
ptomsich wrote:
Good catch!
https://github.com/llvm/llvm-project/pull/76922
More information about the llvm-commits
mailing list