improved CFG settings
This commit is contained in:
@@ -13,6 +13,7 @@ using std::set;
|
||||
using std::string;
|
||||
using std::vector;
|
||||
using std::wstring;
|
||||
using SAPFOR::CFG_Settings;
|
||||
|
||||
using CFG_Type = map<FuncInfo*, vector<SAPFOR::BasicBlock*>>;
|
||||
using UsersDirectives = map<pair<string, int>, set<SgStatement*>>;
|
||||
@@ -2207,8 +2208,8 @@ static void removePrivateAnalyze(Context *ctx)
|
||||
makeDeclaration(ctx->loopStmt, vector<SgSymbol*> {receiverVar}, nullptr)
|
||||
));
|
||||
|
||||
CFG_Type CFG_ForFunc = buildCFGforCurrentFunc(ctx->loopStmt,
|
||||
SAPFOR::CFG_Settings(true, true),
|
||||
const auto settings = CFG_Settings({ CFG_Settings::CFG_atLeastOneIterInLoop, CFG_Settings::CFG_withRD, CFG_Settings::CFG_withCallFrom, CFG_Settings::CFG_withDominators });
|
||||
CFG_Type CFG_ForFunc = buildCFGforCurrentFunc(ctx->loopStmt, settings,
|
||||
ctx->commonBlocks, ctx->allFuncInfo);
|
||||
if (CFG_ForFunc.empty())
|
||||
printInternalError(convertFileName(__FILE__).c_str(), __LINE__);
|
||||
|
||||
Reference in New Issue
Block a user