aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBlockPlacement.cpp
diff options
context:
space:
mode:
authorYuanfang Chen <yuanfang.chen@sony.com>2020-06-30 19:10:01 -0700
committerYuanfang Chen <yuanfang.chen@sony.com>2020-07-01 09:45:05 -0700
commit78c69a00a4cff786e0ef13c895d0db309d6b3f42 (patch)
tree49230e74e2fc935ec4e9bc25c725f58ed72edb61 /llvm/lib/CodeGen/MachineBlockPlacement.cpp
parent0f6afd946d25a2e83288339934f8fa384e38eea3 (diff)
downloadllvm-78c69a00a4cff786e0ef13c895d0db309d6b3f42.zip
llvm-78c69a00a4cff786e0ef13c895d0db309d6b3f42.tar.gz
llvm-78c69a00a4cff786e0ef13c895d0db309d6b3f42.tar.bz2
[NFC] Clean up uses of MachineModuleInfoWrapperPass
Diffstat (limited to 'llvm/lib/CodeGen/MachineBlockPlacement.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineBlockPlacement.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineBlockPlacement.cpp b/llvm/lib/CodeGen/MachineBlockPlacement.cpp
index 229e23d..783d22f 100644
--- a/llvm/lib/CodeGen/MachineBlockPlacement.cpp
+++ b/llvm/lib/CodeGen/MachineBlockPlacement.cpp
@@ -3329,9 +3329,7 @@ bool MachineBlockPlacement::runOnMachineFunction(MachineFunction &MF) {
BranchFolder BF(/*EnableTailMerge=*/true, /*CommonHoist=*/false, *MBFI,
*MBPI, PSI, TailMergeSize);
- auto *MMIWP = getAnalysisIfAvailable<MachineModuleInfoWrapperPass>();
- if (BF.OptimizeFunction(MF, TII, MF.getSubtarget().getRegisterInfo(),
- MMIWP ? &MMIWP->getMMI() : nullptr, MLI,
+ if (BF.OptimizeFunction(MF, TII, MF.getSubtarget().getRegisterInfo(), MLI,
/*AfterPlacement=*/true)) {
// Redo the layout if tail merging creates/removes/moves blocks.
BlockToChain.clear();