Skip to content

Commit 21173d1

Browse files
pratikasharigcbot
authored andcommitted
Boundary condition fix
Boundary condition fix in spill size comparison.
1 parent b47c009 commit 21173d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

visa/GraphColor.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -11370,7 +11370,7 @@ void GlobalRA::setupA0Dot2OnSpill(bool hasStackCall,
1137011370
unsigned int nextSpillOffset,
1137111371
int globalScratchOffset) {
1137211372
if (builder.hasScratchSurface() && !hasStackCall &&
11373-
(nextSpillOffset + globalScratchOffset) > SCRATCH_MSG_LIMIT) {
11373+
(nextSpillOffset + globalScratchOffset) >= SCRATCH_MSG_LIMIT) {
1137411374
// create temp variable to store old a0.2 - this is marked as live-in
1137511375
// and live-out. because the variable is emitted only post RA to
1137611376
// preserve old value of a0.2.

0 commit comments

Comments
 (0)