[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
================
@@ -1376,6 +1376,37 @@ def : GCNPat <
(i32 (V_MOV_B32_e32 (i32 0))), sub1)
>;
+//===----------------------------------------------------------------------===//
+// PTRADD Patterns
+//===----------------------------------------------------------------------===//
+
+def : GCNPat<
+ (DivergentBinFrag<ptradd> i64:$src0, i64:$src1),
+ (V_ADD_U64_PSEUDO $src0, $src1)>;
+
----------------
arsenm wrote:
Maybe should set GISelShouldIgnore on the 64-bit cases, the pseudos are mostly a SelectionDAG hack
https://github.com/llvm/llvm-project/pull/141725
More information about the llvm-commits
mailing list