dead_code_removing #40

Merged
Alexander_KS merged 6 commits from dead_code_removing into master 2024-04-12 12:04:01 +00:00
Showing only changes of commit aace0bf06f - Show all commits

View File

@@ -52,7 +52,7 @@ static void updateUseDefForInstruction(SAPFOR::BasicBlock* block, SAPFOR::Instru
if (!useful) if (!useful)
{ {
set<SAPFOR::CFG_OP> always_useful = static const set<SAPFOR::CFG_OP> always_useful =
{ {
SAPFOR::CFG_OP::POINTER_ASS, SAPFOR::CFG_OP::POINTER_ASS,
SAPFOR::CFG_OP::STORE, SAPFOR::CFG_OP::STORE,
@@ -456,7 +456,7 @@ void removeDeadCode(SgStatement* func,
} }
// remove dead statements // remove dead statements
set<int> removable = static const set<int> removable =
{ {
ASSIGN_STAT, ASSIGN_STAT,
PROC_STAT, PROC_STAT,
@@ -464,7 +464,7 @@ void removeDeadCode(SgStatement* func,
READ_STAT READ_STAT
}; };
set<int> skip = static const set<int> skip =
{ {
PROG_HEDR, PROG_HEDR,
PROC_HEDR, PROC_HEDR,