Skip to content

Commit d564b83

Browse files
bokrzesiigcbot
authored andcommitted
Porting IGC code to LLVM16 - Removing calls to getBasicBlockList for empty/back/front cases
Porting IGC code to LLVM16 * Removing calls to getBasicBlockList for empty/back/front cases
1 parent f3b28a8 commit d564b83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IGC/Compiler/CISACodeGen/layout.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ void Layout::LayoutBlocks(Function& func, LoopInfo& LI)
571571

572572
// if function has a single exit, then the last block must be an exit
573573
// comment this out due to infinite loop example in OCL
574-
// IGC_ASSERT(PDT.getRootNode()->getBlock() == 0x0 || PDT.getRootNode()->getBlock() == &(func.getBasicBlockList().back()));
574+
// IGC_ASSERT(PDT.getRootNode()->getBlock() == 0x0 || PDT.getRootNode()->getBlock() == &(func.back()));
575575
// fix the loop-exit pattern, put break-blocks into the loop
576576
for (llvm::Function::iterator blkIter = func.begin(), blkEnd = func.end();
577577
blkIter != blkEnd; ++blkIter)

0 commit comments

Comments
 (0)