Skip to content

Commit b870ddd

Browse files
committed
Changed function name
1 parent a4773d9 commit b870ddd

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ static bool dontUseFastISelFor(const Function &Fn) {
229229
});
230230
}
231231

232-
static bool shouldRegisterPGOPasses(const TargetMachine &TM,
233-
CodeGenOptLevel OptLevel) {
232+
static bool maintainPGOProfile(const TargetMachine &TM,
233+
CodeGenOptLevel OptLevel) {
234234
if (OptLevel != CodeGenOptLevel::None)
235235
return true;
236236
if (TM.getPGOOption()) {
@@ -403,8 +403,7 @@ SelectionDAGISel::~SelectionDAGISel() { delete CurDAG; }
403403

404404
void SelectionDAGISelLegacy::getAnalysisUsage(AnalysisUsage &AU) const {
405405
CodeGenOptLevel OptLevel = Selector->OptLevel;
406-
bool RegisterPGOPasses =
407-
shouldRegisterPGOPasses(Selector->TM, Selector->OptLevel);
406+
bool RegisterPGOPasses = maintainPGOProfile(Selector->TM, Selector->OptLevel);
408407
if (OptLevel != CodeGenOptLevel::None)
409408
AU.addRequired<AAResultsWrapperPass>();
410409
AU.addRequired<GCModuleInfo>();
@@ -474,7 +473,7 @@ void SelectionDAGISel::initializeAnalysisResults(
474473
(void)MatchFilterFuncName;
475474
#endif
476475

477-
bool RegisterPGOPasses = shouldRegisterPGOPasses(TM, OptLevel);
476+
bool RegisterPGOPasses = maintainPGOProfile(TM, OptLevel);
478477
TII = MF->getSubtarget().getInstrInfo();
479478
TLI = MF->getSubtarget().getTargetLowering();
480479
RegInfo = &MF->getRegInfo();
@@ -529,7 +528,7 @@ void SelectionDAGISel::initializeAnalysisResults(MachineFunctionPass &MFP) {
529528
(void)MatchFilterFuncName;
530529
#endif
531530

532-
bool RegisterPGOPasses = shouldRegisterPGOPasses(TM, OptLevel);
531+
bool RegisterPGOPasses = maintainPGOProfile(TM, OptLevel);
533532
TII = MF->getSubtarget().getInstrInfo();
534533
TLI = MF->getSubtarget().getTargetLowering();
535534
RegInfo = &MF->getRegInfo();

0 commit comments

Comments
 (0)