[llvm] [SelectionDAG] Introduce ISD::PTRADD (PR #140017)
Fabian Ritter via llvm-commits
llvm-commits at lists.llvm.org
Thu May 22 00:26:01 PDT 2025
================
@@ -2617,6 +2620,85 @@ SDValue DAGCombiner::foldSubToAvg(SDNode *N, const SDLoc &DL) {
return SDValue();
}
+/// Try to fold a pointer arithmetic node.
----------------
ritter-x2a wrote:
Removed `DAGCombiner::visitPtrAdd` from this PR, to be added with tests and a target use to a separate later PR. For now, the split changes live on the [`isd-ptradd-initial-dagcombine` branch in my fork](https://github.com/ritter-x2a/llvm-project/tree/isd-ptradd-initial-dagcombine).
https://github.com/llvm/llvm-project/pull/140017
More information about the llvm-commits
mailing list