Skip to content

Commit

Permalink
Merge pull request #639 from hvdijk/compiler-avoid-oob
Browse files Browse the repository at this point in the history
[compiler] Avoid out of bounds access.
  • Loading branch information
hvdijk authored Jan 15, 2025
2 parents ad0d899 + 0c4c4d0 commit 6487eb4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,9 @@ struct ScheduleGenerator {
mainPreheaderBB = nullptr;
mainExitBB = block;
nextSubgroupIV = ivs1[0];
nextScanIV = ivs1[1];
if (isScan) {
nextScanIV = ivs1[1];
}
}
} else {
mainPreheaderBB = BasicBlock::Create(
Expand Down

0 comments on commit 6487eb4

Please sign in to comment.