[llvm] eccf4d4 - [CodeGen] Remove unused MachineBranchProbabilityInfo from MachineTraceMetrics pass(NFC). (#108506)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 16 00:46:58 PDT 2024
Author: Christudasan Devadasan
Date: 2024-10-16T13:16:55+05:30
New Revision: eccf4d44d346eee498b0ff709e625e3104448751
URL: https://github.com/llvm/llvm-project/commit/eccf4d44d346eee498b0ff709e625e3104448751
DIFF: https://github.com/llvm/llvm-project/commit/eccf4d44d346eee498b0ff709e625e3104448751.diff
LOG: [CodeGen] Remove unused MachineBranchProbabilityInfo from MachineTraceMetrics pass(NFC). (#108506)
Added:
Modified:
llvm/lib/CodeGen/MachineTraceMetrics.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/MachineTraceMetrics.cpp b/llvm/lib/CodeGen/MachineTraceMetrics.cpp
index bf3add010574b8..5a1670953ddd97 100644
--- a/llvm/lib/CodeGen/MachineTraceMetrics.cpp
+++ b/llvm/lib/CodeGen/MachineTraceMetrics.cpp
@@ -14,7 +14,6 @@
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/SparseSet.h"
#include "llvm/CodeGen/MachineBasicBlock.h"
-#include "llvm/CodeGen/MachineBranchProbabilityInfo.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/MachineLoopInfo.h"
@@ -44,9 +43,8 @@ char MachineTraceMetrics::ID = 0;
char &llvm::MachineTraceMetricsID = MachineTraceMetrics::ID;
-INITIALIZE_PASS_BEGIN(MachineTraceMetrics, DEBUG_TYPE,
- "Machine Trace Metrics", false, true)
-INITIALIZE_PASS_DEPENDENCY(MachineBranchProbabilityInfoWrapperPass)
+INITIALIZE_PASS_BEGIN(MachineTraceMetrics, DEBUG_TYPE, "Machine Trace Metrics",
+ false, true)
INITIALIZE_PASS_DEPENDENCY(MachineLoopInfoWrapperPass)
INITIALIZE_PASS_END(MachineTraceMetrics, DEBUG_TYPE,
"Machine Trace Metrics", false, true)
@@ -57,7 +55,6 @@ MachineTraceMetrics::MachineTraceMetrics() : MachineFunctionPass(ID) {
void MachineTraceMetrics::getAnalysisUsage(AnalysisUsage &AU) const {
AU.setPreservesAll();
- AU.addRequired<MachineBranchProbabilityInfoWrapperPass>();
AU.addRequired<MachineLoopInfoWrapperPass>();
MachineFunctionPass::getAnalysisUsage(AU);
}
More information about the llvm-commits
mailing list