@@ -590,7 +590,7 @@ Region matchMatrixRegionByIndexes(Region FirstRowRegion, ForwardIter FirstIt,
590590// <3;2,1> vstride=3, width=2, stride=1
591591ShuffleVectorAnalyzer::OperandRegionInfo
592592ShuffleVectorAnalyzer::getMaskRegionPrefix (int StartIdx) {
593- IGC_ASSERT (StartIdx >= 0 &&
593+ IGC_ASSERT (StartIdx >= 0 &&
594594 StartIdx < static_cast <int >(SI->getShuffleMask ().size ()) &&
595595 " Start index is out of bound" );
596596
@@ -1116,7 +1116,7 @@ void genx::LayoutBlocks(Function &func, LoopInfo &LI)
11161116 if (curLoop) {
11171117 auto hd = curLoop->getHeader ();
11181118 if (blk != hd) {
1119- // move the block to the beginning of the loop
1119+ // move the block to the beginning of the loop
11201120 auto insp = InsPos[hd];
11211121 IGC_ASSERT (insp);
11221122 if (blk != insp) {
@@ -1208,18 +1208,18 @@ void genx::LayoutBlocks(Function &func)
12081208{
12091209 std::vector<llvm::BasicBlock*> visitVec;
12101210 std::set<llvm::BasicBlock*> visitSet;
1211- // Reorder basic block to allow more fall-through
1211+ // Reorder basic block to allow more fall-through
12121212 llvm::BasicBlock* entry = &(func.getEntryBlock ());
12131213 visitVec.push_back (entry);
12141214 visitSet.insert (entry);
12151215
12161216 while (!visitVec.empty ()) {
12171217 llvm::BasicBlock* blk = visitVec.back ();
1218- // push in the empty successor
1218+ // push in the empty successor
12191219 PUSHSUCC (blk, SUCCANYLOOP, SUCCNOINST);
12201220 if (blk != visitVec.back ())
12211221 continue ;
1222- // push in the other successor
1222+ // push in the other successor
12231223 PUSHSUCC (blk, SUCCANYLOOP, SUCCHASINST);
12241224 // pop
12251225 if (blk == visitVec.back ()) {
@@ -1597,7 +1597,7 @@ Type &genx::fixDegenerateVectorType(Type &Ty) {
15971597
15981598Function *genx::getFunctionPointerFunc (Value *V) {
15991599 Instruction *I = nullptr ;
1600- for (; I = dyn_cast<CastInst>(V); V = I->getOperand (0 ))
1600+ for (; ( I = dyn_cast<CastInst>(V) ); V = I->getOperand (0 ))
16011601 ;
16021602 ConstantExpr *CE = nullptr ;
16031603 for (; (CE = dyn_cast<ConstantExpr>(V)) &&
0 commit comments