Skip to content

Commit 779db28

Browse files
agrabezhigcbot
authored andcommitted
Ignore DebugOrPseudoInst in unroll heuristics
Make target dependent unroll heuristics insensitive to `DebugOrPseudoInst`
1 parent eec382c commit 779db28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IGC/Compiler/GenTTI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ void GenIntrinsicsTTIImpl::getUnrollingPreferences(Loop *L, ScalarEvolution &SE,
541541

542542
auto hasCall = [](BasicBlock *BB) {
543543
for (auto BI = BB->begin(), BE = BB->end(); BI != BE; ++BI)
544-
if (isa<CallInst>(&*BI))
544+
if (isa<CallInst>(&*BI) && !BI->isDebugOrPseudoInst())
545545
return true;
546546
return false;
547547
};

0 commit comments

Comments
 (0)