aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineCSE.cpp
diff options
context:
space:
mode:
authorpaperchalice <liujunchang97@outlook.com>2024-11-09 16:50:11 +0800
committerGitHub <noreply@github.com>2024-11-09 16:50:11 +0800
commitfe6366928201b7500ee7e903c01bf4bbd661ee2d (patch)
tree2f52cd1d4fc5e7f5cd420a91def1ff360817e782 /llvm/lib/CodeGen/MachineCSE.cpp
parentb83399eab603320d3c2998450f4ada83e7fe746c (diff)
downloadllvm-fe6366928201b7500ee7e903c01bf4bbd661ee2d.zip
llvm-fe6366928201b7500ee7e903c01bf4bbd661ee2d.tar.gz
llvm-fe6366928201b7500ee7e903c01bf4bbd661ee2d.tar.bz2
[Instrumentation] Support `MachineFunction` in `OptNoneInstrumentation` (#115471)
Support `MachineFunction` in `OptNoneInstrumentation`, also add `isRequired` to all necessary passes.
Diffstat (limited to 'llvm/lib/CodeGen/MachineCSE.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineCSE.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineCSE.cpp b/llvm/lib/CodeGen/MachineCSE.cpp
index 8e9fccc..0a54705 100644
--- a/llvm/lib/CodeGen/MachineCSE.cpp
+++ b/llvm/lib/CodeGen/MachineCSE.cpp
@@ -957,9 +957,6 @@ PreservedAnalyses MachineCSEPass::run(MachineFunction &MF,
MachineFunctionAnalysisManager &MFAM) {
MFPropsModifier _(*this, MF);
- if (MF.getFunction().hasOptNone())
- return PreservedAnalyses::all();
-
MachineDominatorTree &MDT = MFAM.getResult<MachineDominatorTreeAnalysis>(MF);
MachineBlockFrequencyInfo &MBFI =
MFAM.getResult<MachineBlockFrequencyAnalysis>(MF);