Skip to content

Commit 95c5981

Browse files
committed
remove InvalidateAnalysisPass<MachineFunctionAnalysis> in llc when input is mir
1 parent 9aed79c commit 95c5981

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

llvm/test/tools/llc/new-pm/pipeline.mir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# RUN: llc -mtriple=x86_64-pc-linux-gnu -x mir -passes=no-op-machine-function --print-pipeline-passes -filetype=null < %s | FileCheck %s --match-full-lines
22

3-
# CHECK: function(machine-function(no-op-machine-function)),PrintMIRPreparePass,function(machine-function(print),invalidate<machine-function-info>)
3+
# CHECK: function(machine-function(no-op-machine-function)),PrintMIRPreparePass,function(machine-function(print))
44

55
---
66
name: f

llvm/tools/llc/NewPMDriver.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#include "llvm/CodeGen/CommandFlags.h"
1919
#include "llvm/CodeGen/MIRParser/MIRParser.h"
2020
#include "llvm/CodeGen/MIRPrinter.h"
21-
#include "llvm/CodeGen/MachineFunctionAnalysis.h"
2221
#include "llvm/CodeGen/MachineModuleInfo.h"
2322
#include "llvm/CodeGen/MachinePassManager.h"
2423
#include "llvm/CodeGen/TargetPassConfig.h"
@@ -154,7 +153,6 @@ int llvm::compileModuleWithNewPM(
154153
MachineFunctionPassManager MFPM;
155154
MFPM.addPass(PrintMIRPass(*OS));
156155
FPM.addPass(createFunctionToMachineFunctionPassAdaptor(std::move(MFPM)));
157-
FPM.addPass(InvalidateAnalysisPass<MachineFunctionAnalysis>());
158156
MPM.addPass(createModuleToFunctionPassAdaptor(std::move(FPM)));
159157

160158
if (MIR->parseMachineFunctions(*M, MAM))

0 commit comments

Comments
 (0)