Skip to content

Commit b889c99

Browse files
bcheng0127igcbot
authored andcommitted
Fix the pseudo kill for RA
1 parent b57ee51 commit b889c99

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

visa/RegAlloc.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2095,10 +2095,11 @@ void LivenessAnalysis::computeGenKillandPseudoKill(G4_BB* bb,
20952095
// Check whether local RA marked this range
20962096
(topdcl &&
20972097
(topdclLR = gra.getLocalLR(topdcl)) &&
2098-
topdclLR->isLiveRangeLocal() &&
2099-
topdclLR->getFirstRef(first) == i)) &&
2100-
// If single inst writes whole region then dont insert pseudo_kill
2101-
((wholeRegionWritten = LivenessAnalysis::writeWholeRegion(bb, i, dst, fg.builder->getOptions())) == false))
2098+
topdclLR->isLiveRangeLocal() &&
2099+
(!topdcl->isInput()) &&
2100+
topdclLR->getFirstRef(first) == i)) &&
2101+
// If single inst writes whole region then dont insert pseudo_kill
2102+
((wholeRegionWritten = LivenessAnalysis::writeWholeRegion(bb, i, dst, fg.builder->getOptions())) == false))
21022103
{
21032104
bool foundKill = false;
21042105
INST_LIST::reverse_iterator nextIt = rit;

0 commit comments

Comments
 (0)