Skip to content

Commit 3e7c8e9

Browse files
jgu222sys_zuul
authored and
sys_zuul
committed
Minor change to quiet compiler warning.
Also remove EOL spaces. Change-Id: I124e433394b4c18463ad48ba11bbdefab4df530f
1 parent 57cc5fc commit 3e7c8e9

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

IGC/VectorCompiler/lib/GenXCodeGen/GenXThreadPrivateMemory.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class GenXThreadPrivateMemory : public ModulePass,
7575
return "GenXThreadPrivateMemory";
7676
}
7777

78-
void getAnalysisUsage(AnalysisUsage &AU) const {
78+
void getAnalysisUsage(AnalysisUsage &AU) const override {
7979
ModulePass::getAnalysisUsage(AU);
8080
AU.addRequired<TargetPassConfig>();
8181
AU.setPreservesCFG();

IGC/VectorCompiler/lib/GenXCodeGen/GenXUtil.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ Region matchMatrixRegionByIndexes(Region FirstRowRegion, ForwardIter FirstIt,
590590
// <3;2,1> vstride=3, width=2, stride=1
591591
ShuffleVectorAnalyzer::OperandRegionInfo
592592
ShuffleVectorAnalyzer::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

15981598
Function *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

Comments
 (0)