[llvm] [AArch64][SelectionDAG] Add CodeGen support for FEAT_CPA (PR #105669)
Rodolfo Wottrich via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 23 04:55:21 PST 2025
================
@@ -4081,8 +4087,15 @@ bool SelectionDAGLegalize::ExpandNode(SDNode *Node) {
// For PIC, the sequence is:
// BRIND(load(Jumptable + index) + RelocBase)
// RelocBase can be JumpTable, GOT or some sort of global base.
- Addr = DAG.getNode(ISD::ADD, dl, PTy, Addr,
- TLI.getPICJumpTableRelocBase(Table, DAG));
+ if (!DAG.getTarget().shouldPreservePtrArith(
----------------
rgwott wrote:
Done, using `getMemBasePlusOffset`.
https://github.com/llvm/llvm-project/pull/105669
More information about the llvm-commits
mailing list