[llvm] [NewPM] Adds a port for AArch64O0PreLegalizerCombiner (PR #189776)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 1 01:54:29 PDT 2026


================
@@ -111,14 +118,34 @@ bool AArch64O0PreLegalizerCombinerImpl::tryCombineAll(MachineInstr &MI) const {
   return false;
 }
 
+bool runCombiner(
+    MachineFunction &MF, GISelValueTracking *VT,
+    const LibcallLoweringInfo &Libcalls,
+    const AArch64O0PreLegalizerCombinerImplRuleConfig &RuleConfig) {
+  const Function &F = MF.getFunction();
+  const AArch64Subtarget &ST = MF.getSubtarget<AArch64Subtarget>();
+
+  CombinerInfo CInfo(/*AllowIllegalOps*/ true, /*ShouldLegalizeIllegal*/ false,
+                     /*LegalizerInfo*/ nullptr, /*EnableOpt*/ false,
+                     F.hasOptSize(), F.hasMinSize());
----------------
arsenm wrote:

```suggestion
  CombinerInfo CInfo(/*AllowIllegalOps=*/ true, /*ShouldLegalizeIllegal=*/ false,
                     /*LegalizerInfo=*/ nullptr, /*EnableOpt=*/ false,
                     F.hasOptSize(), F.hasMinSize());
```

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


More information about the llvm-commits mailing list