Skip to content

Commit 3c6d49c

Browse files
bcheng0127igcbot
authored andcommitted
Changes in code.
1 parent 439d0ce commit 3c6d49c

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

visa/LinearScanRA.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1546,7 +1546,8 @@ void LinearScanRA::calculateCurrentBBLiveIntervals(
15461546
liveIntervals.push_back(stackCallRetLR);
15471547
stackCallRetLR->setPushed(true);
15481548
}
1549-
if (stackCallArgLR && arg && argSize > 0 && arg->getRegVar()) {
1549+
if (arg && argSize > 0 && arg->getRegVar()) {
1550+
vASSERT(stackCallArgLR);
15501551
stackCallArgLR->setLastRef(
15511552
curInst, curInst->getLexicalId() * 2 -
15521553
1); // Minus one so that arguments will not be spilled

visa/LocalRA.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2021,15 +2021,6 @@ void PhyRegsLocalRA::markPhyRegs(G4_Declare *topdcl) {
20212021
for (unsigned int i = 0; i < numwords; i++) {
20222022
// Starting from first word, mark each consecutive word busy
20232023
setWordBusy(regnum, (subRegInWord + i));
2024-
2025-
//In case across one GRF
2026-
if (subRegInWord + i >= builder.numEltPerGRF<Type_UW>()) {
2027-
regnum++;
2028-
if (!isGRFAvailable(regnum)) {
2029-
break;
2030-
}
2031-
i = 0;
2032-
}
20332024
}
20342025
}
20352026
} else {

0 commit comments

Comments
 (0)