[llvm] [SelectionDAG] Introduce ISD::PTRADD (PR #140017)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed May 21 02:07:18 PDT 2025


================
@@ -2617,6 +2620,85 @@ SDValue DAGCombiner::foldSubToAvg(SDNode *N, const SDLoc &DL) {
   return SDValue();
 }
 
+/// Try to fold a pointer arithmetic node.
----------------
arsenm wrote:

Yes, I think that probably the only way to do do this in manageable pieces 

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


More information about the llvm-commits mailing list