improved CFG settings
This commit is contained in:
@@ -19,6 +19,7 @@ using std::pair;
|
||||
using std::make_pair;
|
||||
using std::wstring;
|
||||
using std::stack;
|
||||
using SAPFOR::CFG_Settings;
|
||||
|
||||
#define PRINT_SPLITTED_FRAGMENTS 0
|
||||
|
||||
@@ -315,7 +316,7 @@ static map<SgStatement*, pair<set<SgStatement*>, set<SgStatement*>>>
|
||||
printInternalError(convertFileName(__FILE__).c_str(), __LINE__);
|
||||
|
||||
map<SAPFOR::Argument*, set<int>> outForCurr;
|
||||
buildGenKillForCFG(itCFG->second, funcByName, outForFunc, gen, kill, &genForIR, &killForIR, notInitedGlobals, SAPFOR::CFG_Settings(0));
|
||||
buildGenKillForCFG(itCFG->second, funcByName, outForFunc, gen, kill, &genForIR, &killForIR, notInitedGlobals, SAPFOR::CFG_Settings());
|
||||
|
||||
if (outForFunc.count(byFunc))
|
||||
printInternalError(convertFileName(__FILE__).c_str(), __LINE__);
|
||||
@@ -1051,7 +1052,8 @@ int splitLoops(SgFile *file, vector<LoopGraph*> &loopGraphs, vector<Messages> &m
|
||||
checkNull(listExp, convertFileName(__FILE__).c_str(), __LINE__);
|
||||
int deep = listExp->length();
|
||||
|
||||
currIR = buildCFGforCurrentFunc(loop->loop, SAPFOR::CFG_Settings(true, true), commonBlocks, allFuncInfo);
|
||||
const auto settings = CFG_Settings({ CFG_Settings::CFG_atLeastOneIterInLoop, CFG_Settings::CFG_withRD, CFG_Settings::CFG_withCallFrom, CFG_Settings::CFG_withDominators });
|
||||
currIR = buildCFGforCurrentFunc(loop->loop, settings, commonBlocks, allFuncInfo);
|
||||
totalErr = splitLoop(loop, messages, deep, depInfoForLoopGraph);
|
||||
|
||||
if (totalErr > 0)
|
||||
|
||||
Reference in New Issue
Block a user