Turn off DeSSA if EnableDeSSA is 0

Previously, DeSSA always run, even though EnableDeSSA is 0.

This change turns off DeSSA if EnableDeSSA is 0.
This commit is contained in:
Gu, Junjie
2023-02-14 22:39:19 +00:00
committed by igcbot
parent d5eaa8d03c
commit 6e157d8086
2 changed files with 8 additions and 4 deletions

View File

@ -308,6 +308,12 @@ void DeSSA::dump() const {
bool DeSSA::runOnFunction(Function& MF)
{
if (IGC_IS_FLAG_DISABLED(EnableDeSSA))
{
// getRootValue(), isIsolated(), etc still works.
return false;
}
m_F = &MF;
CurrColor = 0;
MetaDataUtils* pMdUtils = nullptr;