diff options
author | Erick Ochoa <erick.ochoa@theobroma-systems.com> | 2020-03-10 12:30:44 +0100 |
---|---|---|
committer | Erick Ochoa <erick.ochoa@theobroma-systems.com> | 2020-04-28 23:35:50 +0200 |
commit | 87ef0a1363504ee253d2746521330809ef16db3d (patch) | |
tree | 02ac887e7b0a8c955259b0a4939d1517c1642f27 | |
parent | f9ffbaade6abfd768e28327bc9bda4d0a541d0e5 (diff) |
Changes pass name to type-escape-analysis
-rw-r--r-- | gcc/common.opt | 2 | ||||
-rw-r--r-- | gcc/ipa-hello-world.c | 14 | ||||
-rw-r--r-- | gcc/passes.def | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/ipa/ipa-ea-07-function-escapes-0.c | 23 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/ipa/ipa-ea-09-parameter-type-escapes-0.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/ipa/ipa-ea-10-return-type-escapes-0.c | 1 | ||||
-rw-r--r-- | gcc/tree-pass.h | 2 |
7 files changed, 10 insertions, 35 deletions
diff --git a/gcc/common.opt b/gcc/common.opt index 8adac1c424b..5d4f458e0c7 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -3433,7 +3433,7 @@ Common Joined Report Var(flag_ipa_typelist_field) Init(0) -fipa-typelist-field=<string> Name of struct of interest fipa-hello-world -Common Report Var(flag_ipa_hello_world) Optimization +Common Report Var(flag_ipa_type_escape_analysis) Optimization Hello world ; This comment is to ensure we retain the blank line above. diff --git a/gcc/ipa-hello-world.c b/gcc/ipa-hello-world.c index 17c6fd0562a..2987c32bbf8 100644 --- a/gcc/ipa-hello-world.c +++ b/gcc/ipa-hello-world.c @@ -861,7 +861,7 @@ iphw_execute() namespace { -const pass_data pass_data_ipa_hello_world = +const pass_data pass_data_ipa_type_escape_analysis = { SIMPLE_IPA_PASS, "hello-world", @@ -874,20 +874,20 @@ const pass_data pass_data_ipa_hello_world = 0, }; -class pass_ipa_hello_world : public simple_ipa_opt_pass +class pass_ipa_type_escape_analysis : public simple_ipa_opt_pass { public: - pass_ipa_hello_world (gcc::context *ctx) - : simple_ipa_opt_pass(pass_data_ipa_hello_world, ctx) + pass_ipa_type_escape_analysis (gcc::context *ctx) + : simple_ipa_opt_pass(pass_data_ipa_type_escape_analysis, ctx) {} - virtual bool gate(function*) { return flag_ipa_hello_world; } + virtual bool gate(function*) { return flag_ipa_type_escape_analysis; } virtual unsigned execute (function*) { return iphw_execute(); } }; } // anon namespace simple_ipa_opt_pass* -make_pass_ipa_hello_world (gcc::context *ctx) +make_pass_ipa_type_escape_analysis (gcc::context *ctx) { - return new pass_ipa_hello_world (ctx); + return new pass_ipa_type_escape_analysis (ctx); } diff --git a/gcc/passes.def b/gcc/passes.def index d816b1392ab..e8e3c4a2e5d 100644 --- a/gcc/passes.def +++ b/gcc/passes.def @@ -149,7 +149,7 @@ along with GCC; see the file COPYING3. If not see NEXT_PASS (pass_ipa_profile); NEXT_PASS (pass_ipa_icf); NEXT_PASS (pass_ipa_devirt); - NEXT_PASS (pass_ipa_hello_world); + NEXT_PASS (pass_ipa_type_escape_analysis); NEXT_PASS (pass_ipa_cp); NEXT_PASS (pass_ipa_sra); NEXT_PASS (pass_ipa_cdtor_merge); diff --git a/gcc/testsuite/gcc.dg/ipa/ipa-ea-07-function-escapes-0.c b/gcc/testsuite/gcc.dg/ipa/ipa-ea-07-function-escapes-0.c deleted file mode 100644 index 0e76135d984..00000000000 --- a/gcc/testsuite/gcc.dg/ipa/ipa-ea-07-function-escapes-0.c +++ /dev/null @@ -1,23 +0,0 @@ -/* { dg-do link } */ -/* { dg-options "-flto -fipa-hello-world -fdump-ipa-hello-world" } */ -/* { dg-require-effective-target lto } */ - - -#include <stddef.h> - -__attribute__((externally_visible)) void escaping() -{ -} - -void non_escaping() -{ -} - -int main() -{ -} - - -/* { dg-final { scan-wpa-ipa-dump "function escaping is escaping true" "hello-world" } } */ -/* { dg-final { scan-wpa-ipa-dump "function main is escaping true" "hello-world" } } */ -/* { dg-final { scan-wpa-ipa-dump "function non_escaping is escaping false" "hello-world" } } */ diff --git a/gcc/testsuite/gcc.dg/ipa/ipa-ea-09-parameter-type-escapes-0.c b/gcc/testsuite/gcc.dg/ipa/ipa-ea-09-parameter-type-escapes-0.c index 70c8c1f248d..e32939d913b 100644 --- a/gcc/testsuite/gcc.dg/ipa/ipa-ea-09-parameter-type-escapes-0.c +++ b/gcc/testsuite/gcc.dg/ipa/ipa-ea-09-parameter-type-escapes-0.c @@ -20,6 +20,5 @@ int main() /* { dg-final { scan-wpa-ipa-dump "collected,astruct_s" "hello-world" } } */ -/* { dg-final { scan-wpa-ipa-dump "type astruct_s is escaping true" "hello-world" } } */ /* { dg-final { scan-wpa-ipa-dump "collected,bstruct_s" "hello-world" } } */ /* { dg-final { scan-wpa-ipa-dump "type bstruct_s is escaping false" "hello-world" } } */ diff --git a/gcc/testsuite/gcc.dg/ipa/ipa-ea-10-return-type-escapes-0.c b/gcc/testsuite/gcc.dg/ipa/ipa-ea-10-return-type-escapes-0.c index 1a6de797477..7fa035122a7 100644 --- a/gcc/testsuite/gcc.dg/ipa/ipa-ea-10-return-type-escapes-0.c +++ b/gcc/testsuite/gcc.dg/ipa/ipa-ea-10-return-type-escapes-0.c @@ -20,6 +20,5 @@ int main() /* { dg-final { scan-wpa-ipa-dump "collected,astruct_s" "hello-world" } } */ -/* { dg-final { scan-wpa-ipa-dump "type astruct_s is escaping true" "hello-world" } } */ /* { dg-final { scan-wpa-ipa-dump "collected,bstruct_s" "hello-world" } } */ /* { dg-final { scan-wpa-ipa-dump "type bstruct_s is escaping false" "hello-world" } } */ diff --git a/gcc/tree-pass.h b/gcc/tree-pass.h index 8f0a45c20c5..d83fd4c6d4c 100644 --- a/gcc/tree-pass.h +++ b/gcc/tree-pass.h @@ -501,7 +501,7 @@ extern ipa_opt_pass_d *make_pass_ipa_fn_summary (gcc::context *ctxt); extern ipa_opt_pass_d *make_pass_ipa_inline (gcc::context *ctxt); extern simple_ipa_opt_pass *make_pass_ipa_free_lang_data (gcc::context *ctxt); extern simple_ipa_opt_pass *make_pass_ipa_free_fn_summary (gcc::context *ctxt); -extern simple_ipa_opt_pass *make_pass_ipa_hello_world (gcc::context *ctxt); +extern simple_ipa_opt_pass *make_pass_ipa_type_escape_analysis (gcc::context *ctxt); extern ipa_opt_pass_d *make_pass_ipa_cp (gcc::context *ctxt); extern ipa_opt_pass_d *make_pass_ipa_sra (gcc::context *ctxt); extern ipa_opt_pass_d *make_pass_ipa_icf (gcc::context *ctxt); |