[llvm] [NewPM][Instrumentation] Support `MachineOptimizationRemarkEmitter` (PR #90563)
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 29 23:00:27 PDT 2024
================
@@ -1329,6 +1342,51 @@ struct PreservedModuleHashAnalysis
AnalysisKey PreservedModuleHashAnalysis::Key;
+struct MachineInstrCounterAnalysis
+ : public AnalysisInfoMixin<MachineInstrCounterAnalysis> {
+ static AnalysisKey Key;
+
+ struct Result {
+ bool invalidate(MachineFunction &MF, const PreservedAnalyses &,
+ MachineFunctionAnalysisManager::Invalidator &) {
+ return false;
----------------
aeubanks wrote:
if this is never invalidated, then isn't `CountBefore` going to be wrong after the first pass that changes the instruction count?
https://github.com/llvm/llvm-project/pull/90563
More information about the llvm-commits
mailing list