[llvm] [AArch64] Add CodeGen support for FEAT_CPA (PR #105669)
Alexander Richardson via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 22 09:31:11 PDT 2024
================
@@ -4293,6 +4293,12 @@ void SelectionDAGBuilder::visitGetElementPtr(const User &I) {
SDLoc dl = getCurSDLoc();
auto &TLI = DAG.getTargetLoweringInfo();
GEPNoWrapFlags NW = cast<GEPOperator>(I).getNoWrapFlags();
+ unsigned int AddOpcode = ISD::PTRADD;
+
+ if (!DAG.getTarget().shouldPreservePtrArith(
----------------
arichardson wrote:
Use getMemBasePlusOffset below instead?
https://github.com/llvm/llvm-project/pull/105669
More information about the llvm-commits
mailing list