mirror of
https://github.com/intel/llvm.git
synced 2026-01-13 19:08:21 +08:00
[BOLT] Avoid extra function dump on invalid BBs found by UCE (NFC) (#165111)
This commit is contained in:
@@ -346,13 +346,16 @@ void EliminateUnreachableBlocks::runOnFunction(BinaryFunction &Function) {
|
||||
uint64_t Bytes;
|
||||
Function.markUnreachableBlocks();
|
||||
LLVM_DEBUG({
|
||||
bool HasInvalidBB = false;
|
||||
for (BinaryBasicBlock &BB : Function) {
|
||||
if (!BB.isValid()) {
|
||||
HasInvalidBB = true;
|
||||
dbgs() << "BOLT-INFO: UCE found unreachable block " << BB.getName()
|
||||
<< " in function " << Function << "\n";
|
||||
Function.dump();
|
||||
}
|
||||
}
|
||||
if (HasInvalidBB)
|
||||
Function.dump();
|
||||
});
|
||||
BinaryContext::IndependentCodeEmitter Emitter =
|
||||
BC.createIndependentMCCodeEmitter();
|
||||
|
||||
Reference in New Issue
Block a user