[llvm] [MachineVerifier] do not use !NoPHI to check if a MF has phi nodes (PR #211941)

Rahul Joshi via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 25 08:45:47 PDT 2026


================
@@ -731,12 +731,20 @@ void MachineVerifier::visitMachineFunctionBefore() {
   }
 }
 
+static bool hasPHIs(const MachineFunction &MF) {
+  return !MF.getProperties().hasNoPHIs() &&
+         any_of(MF, [](const MachineBasicBlock &MBB) {
+           return any_of(MBB,
----------------
jurahul wrote:

Can this use MBB.phis().empty()?

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


More information about the llvm-commits mailing list