File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -3212,13 +3212,9 @@ bool MachineBlockPlacement::maybeTailDuplicateBlock(
3212
3212
// Signal to outer function
3213
3213
Removed = true ;
3214
3214
3215
- // Conservative default.
3216
- bool InWorkList = true ;
3217
3215
// Remove from the Chain and Chain Map
3218
3216
if (auto It = BlockToChain.find (RemBB); It != BlockToChain.end ()) {
3219
- BlockChain *Chain = It->second ;
3220
- InWorkList = Chain->UnscheduledPredecessors == 0 ;
3221
- Chain->remove (RemBB);
3217
+ It->second ->remove (RemBB);
3222
3218
BlockToChain.erase (It);
3223
3219
}
3224
3220
@@ -3228,11 +3224,10 @@ bool MachineBlockPlacement::maybeTailDuplicateBlock(
3228
3224
}
3229
3225
3230
3226
// Handle the Work Lists
3231
- if (InWorkList) {
3232
- SmallVectorImpl<MachineBasicBlock *> &RemoveList = BlockWorkList;
3233
- if (RemBB->isEHPad ())
3234
- RemoveList = EHPadWorkList;
3235
- llvm::erase (RemoveList, RemBB);
3227
+ if (RemBB->isEHPad ()) {
3228
+ llvm::erase (EHPadWorkList, RemBB);
3229
+ } else {
3230
+ llvm::erase (BlockWorkList, RemBB);
3236
3231
}
3237
3232
3238
3233
// Handle the filter set
You can’t perform that action at this time.
0 commit comments