[llvm] [Instrumentation] Support MachineFunction in ChangeReporter (PR #80946)
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 7 15:58:34 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:
I have something that does this in my rewrite
https://github.com/llvm/llvm-project/pull/80946
More information about the llvm-commits
mailing list