File tree 1 file changed +6
-4
lines changed 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1132,11 +1132,13 @@ MachineBlockPlacement::getBestTrellisSuccessor(
1132
1132
for (auto *Succ : ViableSuccs) {
1133
1133
for (MachineBasicBlock *SuccPred : Succ->predecessors ()) {
1134
1134
// Skip any placed predecessors that are not BB
1135
- if (SuccPred != BB)
1136
- if ((BlockFilter && !BlockFilter->count (SuccPred)) ||
1137
- BlockToChain[SuccPred] == &Chain ||
1138
- BlockToChain[SuccPred] == BlockToChain[Succ])
1135
+ if (SuccPred != BB) {
1136
+ if (BlockFilter && !BlockFilter->count (SuccPred))
1139
1137
continue ;
1138
+ const BlockChain *SuccPredChain = BlockToChain[SuccPred];
1139
+ if (SuccPredChain == &Chain || SuccPredChain == BlockToChain[Succ])
1140
+ continue ;
1141
+ }
1140
1142
BlockFrequency EdgeFreq = MBFI->getBlockFreq (SuccPred) *
1141
1143
MBPI->getEdgeProbability (SuccPred, Succ);
1142
1144
Edges[SuccIndex].push_back ({EdgeFreq, SuccPred, Succ});
You can’t perform that action at this time.
0 commit comments