[BOLT][NFCI] Remove redundant code

createBasicBlock() will create a label for addBasicBlock().

Reviewed By: rafauler

Differential Revision: https://reviews.llvm.org/D127928
This commit is contained in:
Maksim Panchenko 2022-06-15 18:25:58 -07:00
parent 264c09b732
commit 401a425d20
1 changed files with 0 additions and 4 deletions

View File

@ -1569,10 +1569,6 @@ public:
assert((CurrentState == State::CFG || !getBasicBlockAtOffset(Offset)) &&
"basic block already exists in pre-CFG state");
if (!Label) {
std::unique_lock<std::shared_timed_mutex> Lock(BC.CtxMutex);
Label = BC.Ctx->createNamedTempSymbol("BB");
}
std::unique_ptr<BinaryBasicBlock> BBPtr =
createBasicBlock(Offset, Label, DeriveAlignment);
BasicBlocks.emplace_back(BBPtr.release());