[llvm] [AMDGPU][SDAG] Initial support for ISD::PTRADD (PR #141725)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed May 28 01:31:48 PDT 2025


================
@@ -10419,6 +10426,11 @@ SDValue SITargetLowering::LowerINTRINSIC_VOID(SDValue Op,
   }
 }
 
+bool SITargetLowering::shouldPreservePtrArith(const Function &F,
+                                              EVT PtrVT) const {
+  return UseSelectionDAGPTRADD;
----------------
arsenm wrote:

Since the only case you care about is the 64-bit flat case, you could split this and only handle 64-bit pointers initially 

https://github.com/llvm/llvm-project/pull/141725


More information about the llvm-commits mailing list