From 51ab1445b86f6bb5bd96e10f92eed2629ff1f157 Mon Sep 17 00:00:00 2001 From: linma Date: Fri, 15 Oct 2021 11:20:14 -0700 Subject: [PATCH] run callgraph after inline to delete useless static function when inline is enabled --- src/mapleall/maple_phase/include/phases.def | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mapleall/maple_phase/include/phases.def b/src/mapleall/maple_phase/include/phases.def index 05c73b87e4..155d2b0d41 100644 --- a/src/mapleall/maple_phase/include/phases.def +++ b/src/mapleall/maple_phase/include/phases.def @@ -8,6 +8,8 @@ ADDMODULEPHASE("GenNativeStubFunc", JAVALANG) ADDMODULEPHASE("gencheckcast", JAVALANG) ADDMODULEPHASE("javaintrnlowering", JAVALANG) ADDMODULEPHASE("inline", Options::O2 && Options::useInline) +// run callgraph again to delete fully inlined static function +ADDMODULEPHASE("callgraph", Options::O2 && Options::useInline) ADDMODULEPHASE("simplify", Options::O2) ADDMODULEPHASE("ConstantFold", Options::O2) // ipa phase manager -- Gitee