Skip to content

Commit 31d4f77

Browse files
bcheng0127igcbot
authored andcommitted
Fix the bug of linear scan RA
1 parent a798e9b commit 31d4f77

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

visa/LinearScanRA.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1452,11 +1452,6 @@ void LinearScanRA::calculateInputIntervalsGlobal(PhyRegsLocalRA &initPregs, std:
14521452
}
14531453
}
14541454

1455-
if (!BBVector[bb->getId()]->hasRefInput())
1456-
{
1457-
continue;
1458-
}
1459-
14601455
//@BB
14611456
for (INST_LIST_RITER inst_it = bb->rbegin(), inst_rend = bb->rend();
14621457
inst_it != inst_rend;
@@ -1470,8 +1465,8 @@ void LinearScanRA::calculateInputIntervalsGlobal(PhyRegsLocalRA &initPregs, std:
14701465
{
14711466
// Scan dst
14721467
G4_DstRegRegion* dst = curInst->getDst();
1473-
14741468
topdcl = GetTopDclFromRegRegion(dst);
1469+
14751470
if (topdcl &&
14761471
topdcl->getRegFile() == G4_INPUT &&
14771472
topdcl->getRegVar()->isGreg() &&
@@ -1555,7 +1550,6 @@ void LinearScanRA::calculateLiveInIntervals(G4_BB* bb, std::vector<LSLiveRange*>
15551550
{
15561551
continue;
15571552
}
1558-
15591553
LSLiveRange* lr = gra.getLSLR(dcl);
15601554
if (lr &&
15611555
l.isLiveAtEntry(bb, dcl->getRegVar()->getId()))

0 commit comments

Comments
 (0)