summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErick Ochoa <erick.ochoa@theobroma-systems.com>2020-05-15 10:50:54 +0200
committerErick Ochoa <erick.ochoa@theobroma-systems.com>2020-06-03 16:05:58 +0200
commit3a848abb27cc98d901a77839fbcb923cdf819786 (patch)
treecf18d6f77f8c5f38623f34e48aa0b48c80c9751d
parent5b0cf3d712ad655109b5b78c7ef8e1598e54032b (diff)
Renames escape analysis to type playground
-rw-r--r--gcc/Makefile.in2
-rw-r--r--gcc/common.opt4
-rw-r--r--gcc/ipa-type-collector.c (renamed from gcc/ipa-escape-analysis.c)18
-rw-r--r--gcc/ipa-type-collector.h (renamed from gcc/ipa-escape-analysis.h)0
-rw-r--r--gcc/passes.def2
-rw-r--r--gcc/testsuite/gcc.dg/ipa/type-playground-00.c4
-rw-r--r--gcc/testsuite/gcc.dg/ipa/type-playground-01.c4
-rw-r--r--gcc/testsuite/gcc.dg/ipa/type-playground-02.c4
-rw-r--r--gcc/testsuite/gcc.dg/ipa/type-playground-03.c4
-rw-r--r--gcc/testsuite/gcc.dg/ipa/type-playground-04.c4
-rw-r--r--gcc/tree-pass.h2
11 files changed, 24 insertions, 24 deletions
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index 2e55b3b40c1..4448c3132d8 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -1407,7 +1407,7 @@ OBJS = \
incpath.o \
init-regs.o \
internal-fn.o \
- ipa-escape-analysis.o \
+ ipa-type-collector.o \
compare-types.o \
collect-types.o \
name-types.o \
diff --git a/gcc/common.opt b/gcc/common.opt
index 94d35f96296..aaa6f75c265 100644
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -3420,8 +3420,8 @@ fipa-ra
Common Report Var(flag_ipa_ra) Optimization
Use caller save register across calls if possible.
-fipa-escape-analysis
-Common Report Var(flag_ipa_escape_analysis) Optimization
+fipa-type-collector
+Common Report Var(flag_ipa_type_collector) Optimization
TBD
ftp-types-compared=
diff --git a/gcc/ipa-escape-analysis.c b/gcc/ipa-type-collector.c
index cdc249e55fb..69a3abac95a 100644
--- a/gcc/ipa-escape-analysis.c
+++ b/gcc/ipa-type-collector.c
@@ -36,7 +36,7 @@
#include "collect-types.h"
#include "name-types.h"
-#include "ipa-escape-analysis.h"
+#include "ipa-type-collector.h"
//#define FUZZ_MODE 1
@@ -816,10 +816,10 @@ iphw_execute()
}
namespace {
-const pass_data pass_data_ipa_escape_analysis =
+const pass_data pass_data_ipa_type_collector =
{
SIMPLE_IPA_PASS,
- "escape-analysis",
+ "type-collector",
OPTGROUP_NONE,
TV_NONE,
(PROP_cfg | PROP_ssa),
@@ -829,20 +829,20 @@ const pass_data pass_data_ipa_escape_analysis =
0,
};
-class pass_ipa_escape_analysis : public simple_ipa_opt_pass
+class pass_ipa_type_collector : public simple_ipa_opt_pass
{
public:
- pass_ipa_escape_analysis (gcc::context *ctx)
- : simple_ipa_opt_pass(pass_data_ipa_escape_analysis, ctx)
+ pass_ipa_type_collector (gcc::context *ctx)
+ : simple_ipa_opt_pass(pass_data_ipa_type_collector, ctx)
{}
- virtual bool gate(function*) { return flag_ipa_escape_analysis; }
+ virtual bool gate(function*) { return flag_ipa_type_collector; }
virtual unsigned execute (function*) { return iphw_execute(); }
};
} // anon namespace
simple_ipa_opt_pass*
-make_pass_ipa_escape_analysis (gcc::context *ctx)
+make_pass_ipa_type_collector (gcc::context *ctx)
{
- return new pass_ipa_escape_analysis (ctx);
+ return new pass_ipa_type_collector (ctx);
}
diff --git a/gcc/ipa-escape-analysis.h b/gcc/ipa-type-collector.h
index 16611c2db56..16611c2db56 100644
--- a/gcc/ipa-escape-analysis.h
+++ b/gcc/ipa-type-collector.h
diff --git a/gcc/passes.def b/gcc/passes.def
index bcbee148a9c..527e3a1cd46 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_escape_analysis);
+ NEXT_PASS (pass_ipa_type_collector);
NEXT_PASS (pass_ipa_cp);
NEXT_PASS (pass_ipa_sra);
NEXT_PASS (pass_ipa_cdtor_merge);
diff --git a/gcc/testsuite/gcc.dg/ipa/type-playground-00.c b/gcc/testsuite/gcc.dg/ipa/type-playground-00.c
index 6bddfac9939..8a38de1dbfb 100644
--- a/gcc/testsuite/gcc.dg/ipa/type-playground-00.c
+++ b/gcc/testsuite/gcc.dg/ipa/type-playground-00.c
@@ -1,5 +1,5 @@
/* { dg-do link } */
-/* { dg-options "-flto -fipa-escape-analysis -fdump-ipa-escape-analysis -ftp-comparison-functions=EQ_POINTER -ftp-types-compared=int " } */
+/* { dg-options "-flto -fipa-type-collector -fdump-ipa-type-collector -ftp-comparison-functions=EQ_POINTER -ftp-types-compared=int " } */
int
main ()
@@ -17,5 +17,5 @@ main ()
// evaluates to false
-/* { dg-final { scan-wpa-ipa-dump "0,32:integer_type x 0,32:integer_type = t," "escape-analysis" } } */
+/* { dg-final { scan-wpa-ipa-dump "0,32:integer_type x 0,32:integer_type = t," "type-collector" } } */
diff --git a/gcc/testsuite/gcc.dg/ipa/type-playground-01.c b/gcc/testsuite/gcc.dg/ipa/type-playground-01.c
index f85ecc13ef1..d8c69aef4db 100644
--- a/gcc/testsuite/gcc.dg/ipa/type-playground-01.c
+++ b/gcc/testsuite/gcc.dg/ipa/type-playground-01.c
@@ -1,5 +1,5 @@
/* { dg-do run } */
-/* { dg-options "-flto -fipa-escape-analysis -fdump-ipa-escape-analysis -ftp-comparison-functions=EQ_STRUCTURAL -ftp-types-compared=astruct_s" } */
+/* { dg-options "-flto -fipa-type-collector -fdump-ipa-type-collector -ftp-comparison-functions=EQ_STRUCTURAL -ftp-types-compared=astruct_s" } */
struct astruct_s {
struct astruct_s* a;
@@ -16,4 +16,4 @@ main(int argc, char* argv)
// 0,64:astruct_s {0,64:astruct_s {}*;} x 0,0:astruct_s {} = f,
// I am not an expert on regex
-/* { dg-final { scan-wpa-ipa-dump "0,64:astruct_s .0,64:astruct_s ..... x 0,0:astruct_s .. = f," "escape-analysis" } } */
+/* { dg-final { scan-wpa-ipa-dump "0,64:astruct_s .0,64:astruct_s ..... x 0,0:astruct_s .. = f," "type-collector" } } */
diff --git a/gcc/testsuite/gcc.dg/ipa/type-playground-02.c b/gcc/testsuite/gcc.dg/ipa/type-playground-02.c
index 128dc8f3b82..1101bb51d8a 100644
--- a/gcc/testsuite/gcc.dg/ipa/type-playground-02.c
+++ b/gcc/testsuite/gcc.dg/ipa/type-playground-02.c
@@ -1,5 +1,5 @@
/* { dg-do run } */
-/* { dg-options "-flto -fipa-escape-analysis -fdump-ipa-escape-analysis -ftp-comparison-functions=EQ_MAIN_VARIANT -ftp-types-compared=astruct_s" } */
+/* { dg-options "-flto -fipa-type-collector -fdump-ipa-type-collector -ftp-comparison-functions=EQ_MAIN_VARIANT -ftp-types-compared=astruct_s" } */
struct astruct_s {
struct astruct_s* a;
@@ -16,4 +16,4 @@ main(int argc, char* argv)
// 0,64:astruct_s {0,64:astruct_s {}*;} x 0,0:astruct_s {} = f,
// I am not an expert on regex
-/* { dg-final { scan-wpa-ipa-dump "0,64:astruct_s .0,64:astruct_s ..... x 0,0:astruct_s .. = f," "escape-analysis" } } */
+/* { dg-final { scan-wpa-ipa-dump "0,64:astruct_s .0,64:astruct_s ..... x 0,0:astruct_s .. = f," "type-collector" } } */
diff --git a/gcc/testsuite/gcc.dg/ipa/type-playground-03.c b/gcc/testsuite/gcc.dg/ipa/type-playground-03.c
index 4ffe949f826..5de12a31158 100644
--- a/gcc/testsuite/gcc.dg/ipa/type-playground-03.c
+++ b/gcc/testsuite/gcc.dg/ipa/type-playground-03.c
@@ -1,5 +1,5 @@
/* { dg-do run } */
-/* { dg-options "-flto -fipa-escape-analysis -fdump-ipa-escape-analysis -ftp-comparison-functions=EQ_IDENTIFIER -ftp-types-compared=astruct_s" } */
+/* { dg-options "-flto -fipa-type-collector -fdump-ipa-type-collector -ftp-comparison-functions=EQ_IDENTIFIER -ftp-types-compared=astruct_s" } */
struct astruct_s {
struct astruct_s* a;
@@ -22,4 +22,4 @@ main(int argc, char* argv)
// 0,64:astruct_s {0,64:astruct_s {}*;} x 0,0:astruct_s {} = t,
// I am not an expert on regex
-/* { dg-final { scan-wpa-ipa-dump "0,64:astruct_s .0,64:astruct_s ..... x 0,0:astruct_s .. = t," "escape-analysis" } } */
+/* { dg-final { scan-wpa-ipa-dump "0,64:astruct_s .0,64:astruct_s ..... x 0,0:astruct_s .. = t," "type-collector" } } */
diff --git a/gcc/testsuite/gcc.dg/ipa/type-playground-04.c b/gcc/testsuite/gcc.dg/ipa/type-playground-04.c
index 7b490f6eca3..f6f32c09d4f 100644
--- a/gcc/testsuite/gcc.dg/ipa/type-playground-04.c
+++ b/gcc/testsuite/gcc.dg/ipa/type-playground-04.c
@@ -1,5 +1,5 @@
/* { dg-do run } */
-/* { dg-options "-flto -fipa-escape-analysis -fdump-ipa-escape-analysis -ftp-comparison-functions=EQ_CANONICAL -ftp-types-compared=astruct_s" } */
+/* { dg-options "-flto -fipa-type-collector -fdump-ipa-type-collector -ftp-comparison-functions=EQ_CANONICAL -ftp-types-compared=astruct_s" } */
struct astruct_s {
struct astruct_s* a;
@@ -22,4 +22,4 @@ main(int argc, char* argv)
// 0,64:astruct_s {0,64:astruct_s {}*;} x 0,0:astruct_s {} = f,
// I am not an expert on regex
-/* { dg-final { scan-wpa-ipa-dump "0,64:astruct_s .0,64:astruct_s ..... x 0,0:astruct_s .. = f," "escape-analysis" } } */
+/* { dg-final { scan-wpa-ipa-dump "0,64:astruct_s .0,64:astruct_s ..... x 0,0:astruct_s .. = f," "type-collector" } } */
diff --git a/gcc/tree-pass.h b/gcc/tree-pass.h
index 07f6d9c346d..49ff3a70b9a 100644
--- a/gcc/tree-pass.h
+++ b/gcc/tree-pass.h
@@ -502,7 +502,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_escape_analysis (gcc::context *ctxt);
+extern simple_ipa_opt_pass *make_pass_ipa_type_collector (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);