Skip to content

Commit 73b228a

Browse files
PassConfig is no longer needed
Signed-off-by: Mikhail R. Gadelha <[email protected]>
1 parent 17fcc45 commit 73b228a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

llvm/lib/CodeGen/BranchFolding.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
#include "llvm/CodeGen/MachineSizeOpts.h"
4040
#include "llvm/CodeGen/TargetInstrInfo.h"
4141
#include "llvm/CodeGen/TargetOpcodes.h"
42-
#include "llvm/CodeGen/TargetPassConfig.h"
4342
#include "llvm/CodeGen/TargetRegisterInfo.h"
4443
#include "llvm/CodeGen/TargetSubtargetInfo.h"
4544
#include "llvm/IR/DebugInfoMetadata.h"
@@ -104,7 +103,6 @@ class BranchFolderLegacy : public MachineFunctionPass {
104103
AU.addRequired<MachineBlockFrequencyInfoWrapperPass>();
105104
AU.addRequired<MachineBranchProbabilityInfoWrapperPass>();
106105
AU.addRequired<ProfileSummaryInfoWrapperPass>();
107-
AU.addRequired<TargetPassConfig>();
108106
MachineFunctionPass::getAnalysisUsage(AU);
109107
}
110108

@@ -158,7 +156,6 @@ bool BranchFolderLegacy::runOnMachineFunction(MachineFunction &MF) {
158156
if (skipFunction(MF.getFunction()))
159157
return false;
160158

161-
TargetPassConfig *PassConfig = &getAnalysis<TargetPassConfig>();
162159
// TailMerge can create jump into if branches that make CFG irreducible for
163160
// HW that requires structurized CFG.
164161
bool EnableTailMerge =

0 commit comments

Comments
 (0)