Skip to content

Commit 273611f

Browse files
ktrifunovicgfxbot
authored andcommitted
Fix the eviction of a congruence class in the case a complete eviction is requested.
Change-Id: I4e88f87b661c19863f4ca7b0dc3239ca7b994e2a
1 parent b663ccd commit 273611f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

IGC/Compiler/CISACodeGen/CoalescingEngine.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,14 @@ void CoalescingEngine::PrepareInsertionSlot(
727727
}
728728
NewParent = ImmediateDominatingParent[NewParent];
729729
}
730+
731+
//it might turn out, that rootNode does not dominate 'inst'
732+
//since it is in another branch of DT
733+
//do not forget to delete it as well
734+
if (getRegRoot(RootNode->value)) {
735+
isolateReg(RootNode->value);
736+
}
737+
730738
} else {
731739
//Evict dominating parent from CC.
732740
Value* NewParent = GetActualDominatingParent(RootNode->value, inst);

0 commit comments

Comments
 (0)