[llvm] [NewPM] Adds a port for AArch64ConditionalComparesPass (PR #192755)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 17 21:21:30 PDT 2026


================
@@ -962,3 +972,38 @@ bool AArch64ConditionalCompares::runOnMachineFunction(MachineFunction &MF) {
 
   return Changed;
 }
+
+bool AArch64ConditionalComparesLegacy::runOnMachineFunction(
+    MachineFunction &MF) {
+  if (skipFunction(MF.getFunction()))
+    return false;
+
+  auto *MBPI =
----------------
boomanaiden154 wrote:

I guess for all these cases it doesn't matter too much, but the result of an analysis pass is not necessarily super obvious from the name of the pass type/analysis. So I'm a little skeptical of `auto` here, but I think either way is probably fine.

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


More information about the llvm-commits mailing list