Skip to content

Commit

Permalink
Porting IGC code to LLVM16 - Removing calls to getBasicBlockList for…
Browse files Browse the repository at this point in the history
… empty/back/front cases

Porting IGC code to LLVM16

* Removing calls to getBasicBlockList for empty/back/front cases
  • Loading branch information
bokrzesi authored and igcbot committed Aug 28, 2024
1 parent f3b28a8 commit d564b83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IGC/Compiler/CISACodeGen/layout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ void Layout::LayoutBlocks(Function& func, LoopInfo& LI)

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

0 comments on commit d564b83

Please sign in to comment.