[llvm] [GlobalIsel] Combine G_PTR_ADD. (PR #95647)
Pierre van Houtryve via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 16 23:59:06 PDT 2024
Thorsten =?utf-8?q?Schütt?= <schuett at gmail.com>,
Thorsten =?utf-8?q?Schütt?= <schuett at gmail.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/95647 at github.com>
================
@@ -879,6 +879,16 @@ class CombinerHelper {
bool matchShlOfVScale(const MachineOperand &MO, BuildFnTy &MatchInfo);
+ bool matchPtrAddWithSub(const MachineOperand &MO, BuildFnTy &MatchInfo);
+ bool matchPtrAddWithAdd(const MachineOperand &MO, BuildFnTy &MatchInfo);
+ bool matchPtrAddsFoldConstants(MachineOperand &MO, BuildFnTy &MatchInfo);
----------------
Pierre-vh wrote:
```suggestion
bool matchPtrAddsFoldConstants(const MachineOperand &MO, BuildFnTy &MatchInfo);
```
https://github.com/llvm/llvm-project/pull/95647
More information about the llvm-commits
mailing list