private_removing: add call of remove_dead_code pass
This commit is contained in:
@@ -2503,6 +2503,7 @@ void runPass(const int curr_regime, const char *proj_name, const char *folderNam
|
||||
case PRIVATE_REMOVING:
|
||||
runAnalysis(*project, curr_regime, false, "", folderName);
|
||||
runPass(REVERT_SUBST_EXPR_RD, proj_name, folderName);
|
||||
runPass(REMOVE_DEAD_CODE, proj_name, folderName);
|
||||
if (folderName)
|
||||
runAnalysis(*project, UNPARSE_FILE, true, "", folderName);
|
||||
else
|
||||
|
||||
@@ -747,7 +747,7 @@ void removePrivates(SgFile* file, vector<Messages>& messages, int& countOfTransf
|
||||
|
||||
//removeDeadCodeFromLoop(varToRemove.loop); // TODO: problem with reverting substitution
|
||||
removeExcessiveDefs(varToRemove);
|
||||
removeEmptyLoops(varToRemove.loop, messages);
|
||||
//removeEmptyLoops(varToRemove.loop, messages); // removing is made by REMOVE_DEAD_CODE pass
|
||||
|
||||
SgForStmt* loopStmt = (SgForStmt*)varToRemove.loop->loop->GetOriginal();
|
||||
vector<SgArrayRefExp*> varRefs = getDirectArrayRefs(loopStmt, varToRemove.varSymbol);
|
||||
|
||||
Reference in New Issue
Block a user