Skip to content

Commit bc3034f

Browse files
bcheng0127igcbot
authored andcommitted
Fix bugs and update the LIT test for linear scan RA
So that linear scan RA driver can be built to do regression test
1 parent 932eafa commit bc3034f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

visa/LinearScanRA.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1547,8 +1547,7 @@ void LinearScanRA::calculateCurrentBBLiveIntervals(
15471547
liveIntervals.push_back(stackCallRetLR);
15481548
stackCallRetLR->setPushed(true);
15491549
}
1550-
if (arg && argSize > 0 && arg->getRegVar()) {
1551-
vASSERT(stackCallArgLR);
1550+
if (stackCallArgLR && arg && argSize > 0 && arg->getRegVar()) {
15521551
stackCallArgLR->setLastRef(
15531552
curInst, curInst->getLexicalId() * 2 -
15541553
1); // Minus one so that arguments will not be spilled

0 commit comments

Comments
 (0)