Skip to content

Commit 5abfe48

Browse files
bcheng0127igcbot
authored andcommitted
Fix a bug on linear scan RA
Fix a bug on linear scan RA
1 parent 470bc96 commit 5abfe48

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

visa/LinearScanRA.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2447,6 +2447,11 @@ bool globalLinearScan::canBeSpilledLR(LSLiveRange* lr)
24472447
return false;
24482448
}
24492449

2450+
if (lr->getTopDcl()->isDoNotSpill())
2451+
{
2452+
return false;
2453+
}
2454+
24502455
if (lr->isCall())
24512456
{
24522457
return false;

0 commit comments

Comments
 (0)