We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2942133 commit 6d94f90Copy full SHA for 6d94f90
IGC/Compiler/CISACodeGen/BlockCoalescing.cpp
@@ -55,11 +55,10 @@ namespace IGC
55
for (uint i = 0; i < patternMatch->m_numBlocks; i++)
56
{
57
SBasicBlock& block = patternMatch->m_blocks[i];
58
-
59
// An empty block would have only one pattern matching the branch instruction
60
- if (block.bb->sizeWithoutDebug() == 1)
+ if (block.m_dags.size() == 1)
61
62
- if (BranchInst * br = dyn_cast<BranchInst>(&block.bb->back()))
+ if (BranchInst * br = dyn_cast<BranchInst>(block.m_dags[0].m_root))
63
64
if (br->isUnconditional())
65
IGC/Compiler/tests/DebugInfo/EmitVISAPass/bb_with_dbg_calls.ll
0 commit comments