dead_code: fix for recent changes

This commit is contained in:
2024-04-04 20:37:34 +03:00
parent e2ac45f48d
commit af194134ba

View File

@@ -41,7 +41,7 @@ static void updateUseDefForInstruction(SAPFOR::BasicBlock* block, SAPFOR::Instru
{
if (use.find(r) != use.end() ||
r->getMemType() != SAPFOR::CFG_MEM_TYPE::LOCAL_ ||
r->getType() != SAPFOR::CFG_ARG_TYPE::VAR)
!(r->getType() == SAPFOR::CFG_ARG_TYPE::VAR || r->getType() == SAPFOR::CFG_ARG_TYPE::REG))
{
useful = true;
break;