Skip to content

Commit 6d94f90

Browse files
sys-igcigcbot
authored andcommitted
[Autobackout][FunctionalRegression]Revert of change: f7251fa: Treat BasicBlock with only dbg calls as an empty BasicBlock
Treat BasicBlock with only dbg calls as an empty BasicBlock
1 parent 2942133 commit 6d94f90

File tree

2 files changed

+2
-124
lines changed

2 files changed

+2
-124
lines changed

IGC/Compiler/CISACodeGen/BlockCoalescing.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,10 @@ namespace IGC
5555
for (uint i = 0; i < patternMatch->m_numBlocks; i++)
5656
{
5757
SBasicBlock& block = patternMatch->m_blocks[i];
58-
5958
// An empty block would have only one pattern matching the branch instruction
60-
if (block.bb->sizeWithoutDebug() == 1)
59+
if (block.m_dags.size() == 1)
6160
{
62-
if (BranchInst * br = dyn_cast<BranchInst>(&block.bb->back()))
61+
if (BranchInst * br = dyn_cast<BranchInst>(block.m_dags[0].m_root))
6362
{
6463
if (br->isUnconditional())
6564
{

IGC/Compiler/tests/DebugInfo/EmitVISAPass/bb_with_dbg_calls.ll

Lines changed: 0 additions & 121 deletions
This file was deleted.

0 commit comments

Comments
 (0)