File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -707,10 +707,6 @@ void TargetPassConfig::addPass(Pass *P) {
707707 // and shouldn't reference it.
708708 AnalysisID PassID = P->getPassID ();
709709
710- IdentifyingPassPtr TargetID = getPassSubstitution (PassID);
711- if (!overridePass (PassID, TargetID).isValid ())
712- return ;
713-
714710 if (StartBefore == PassID && StartBeforeCount++ == StartBeforeInstanceNum)
715711 Started = true ;
716712 if (StopBefore == PassID && StopBeforeCount++ == StopBeforeInstanceNum)
@@ -1518,8 +1514,9 @@ void TargetPassConfig::addMachineLateOptimization() {
15181514 addPass (&MachineLateInstrsCleanupID);
15191515
15201516 // Branch folding must be run after regalloc and prolog/epilog insertion.
1521- addPass (createBranchFolderPass (!TM->requiresStructuredCFG () &&
1522- getEnableTailMerge ()));
1517+ if (!isPassSubstitutedOrOverridden (&BranchFolderPassID))
1518+ addPass (createBranchFolderPass (!TM->requiresStructuredCFG () &&
1519+ getEnableTailMerge ()));
15231520
15241521 // Tail duplication.
15251522 // Note that duplicating tail just increases code size and degrades
You can’t perform that action at this time.
0 commit comments