diff options
| author | paperchalice <liujunchang97@outlook.com> | 2024-11-09 16:50:11 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-09 16:50:11 +0800 |
| commit | fe6366928201b7500ee7e903c01bf4bbd661ee2d (patch) | |
| tree | 2f52cd1d4fc5e7f5cd420a91def1ff360817e782 /llvm/lib/CodeGen/MachineLICM.cpp | |
| parent | b83399eab603320d3c2998450f4ada83e7fe746c (diff) | |
[Instrumentation] Support `MachineFunction` in `OptNoneInstrumentation` (#115471)
Support `MachineFunction` in `OptNoneInstrumentation`, also add
`isRequired` to all necessary passes.
Diffstat (limited to 'llvm/lib/CodeGen/MachineLICM.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/MachineLICM.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineLICM.cpp b/llvm/lib/CodeGen/MachineLICM.cpp index da095c692e6d..853d455bec5f 100644 --- a/llvm/lib/CodeGen/MachineLICM.cpp +++ b/llvm/lib/CodeGen/MachineLICM.cpp @@ -1764,9 +1764,6 @@ bool MachineLICMImpl::isTgtHotterThanSrc(MachineBasicBlock *SrcBlock, template <typename DerivedT, bool PreRegAlloc> PreservedAnalyses MachineLICMBasePass<DerivedT, PreRegAlloc>::run( MachineFunction &MF, MachineFunctionAnalysisManager &MFAM) { - if (MF.getFunction().hasOptNone()) - return PreservedAnalyses::all(); - bool Changed = MachineLICMImpl(PreRegAlloc, nullptr, &MFAM).run(MF); if (!Changed) return PreservedAnalyses::all(); |
