From 4e9ede81aa4dec7bdc362941cb8bdb94e9a483e3 Mon Sep 17 00:00:00 2001 From: Fred Chow Date: Sat, 22 May 2021 00:16:09 -0700 Subject: [PATCH] Do not call loopcanon and splitcriticaledge phases from cfgbuild because phase manager will call them --- src/mapleall/maple_me/src/me_cfg.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mapleall/maple_me/src/me_cfg.cpp b/src/mapleall/maple_me/src/me_cfg.cpp index 9f1f410318..b11dcabc90 100644 --- a/src/mapleall/maple_me/src/me_cfg.cpp +++ b/src/mapleall/maple_me/src/me_cfg.cpp @@ -1554,7 +1554,7 @@ AnalysisResult *MeDoMeCfg::Run(MeFunction *func, MeFuncResultMgr *m, ModuleResul theCFG->UnreachCodeAnalysis(); theCFG->WontExitAnalysis(); theCFG->Verify(); - +#if 0 // these 2 phases will be invoked by phase manager if (mrm == nullptr) { MeDoLoopCanon doLoopCanon(MeFuncPhase_LOOPCANON); if (!MeOption::quiet) { @@ -1568,6 +1568,7 @@ AnalysisResult *MeDoMeCfg::Run(MeFunction *func, MeFuncResultMgr *m, ModuleResul } doSplitCEdge.Run(func, m, NULL); } +#endif return theCFG; } } // namespace maple -- Gitee