[llvm] [SelectionDAG] Introduce ISD::PTRADD (PR #140017)
Jessica Clarke via llvm-commits
llvm-commits at lists.llvm.org
Thu May 15 09:26:11 PDT 2025
================
@@ -2388,7 +2391,7 @@ static bool canFoldInAddressingMode(SDNode *N, SDNode *Use, SelectionDAG &DAG,
}
TargetLowering::AddrMode AM;
- if (N->getOpcode() == ISD::ADD) {
+ if (N->getOpcode() == ISD::ADD || N->getOpcode() == ISD::PTRADD) {
----------------
jrtc27 wrote:
It's present in Morello LLVM. No reason not to include this IMO, it makes this change more universally applicable.
https://github.com/llvm/llvm-project/pull/140017
More information about the llvm-commits
mailing list