[llvm] [Instrumentation] Support MachineFunction in ChangeReporter (PR #80946)

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 7 17:01:58 PST 2024


================
@@ -90,7 +90,9 @@ Error MachineFunctionPassManager::run(Module &M,
       for (unsigned I = Begin, E = Idx; I != E; ++I) {
         auto *P = Passes[I].get();
 
-        if (!PI.runBeforePass<MachineFunction>(*P, MF))
+        // Keep BeforeStack empty in ChangeReporter
+        if (P->name() != FreeMachineFunctionPass::name() &&
----------------
aeubanks wrote:

we can keep this for now, but https://github.com/llvm/llvm-project/pull/81068 will overwrite this

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


More information about the llvm-commits mailing list