aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-structalias.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2021-08-24 09:29:48 +0200
committerMartin Liska <mliska@suse.cz>2021-08-24 09:29:48 +0200
commiteb2de151c582a38efc53ce57416f7bd7a3a9c0eb (patch)
tree653a76a3d1f126ac3775912c560df0c8fe9e5e8d /gcc/tree-ssa-structalias.c
parent041709a62f1e184cf6d8fefa486f67ca7e6b784c (diff)
parentf8977166135de09fe36a3b57cc11daa67587604e (diff)
downloadgcc-eb2de151c582a38efc53ce57416f7bd7a3a9c0eb.zip
gcc-eb2de151c582a38efc53ce57416f7bd7a3a9c0eb.tar.gz
gcc-eb2de151c582a38efc53ce57416f7bd7a3a9c0eb.tar.bz2
Merge branch 'master' into devel/sphinx
Diffstat (limited to 'gcc/tree-ssa-structalias.c')
-rw-r--r--gcc/tree-ssa-structalias.c22
1 files changed, 14 insertions, 8 deletions
diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c
index fb0e429..c430855 100644
--- a/gcc/tree-ssa-structalias.c
+++ b/gcc/tree-ssa-structalias.c
@@ -8220,10 +8220,12 @@ ipa_pta_execute (void)
FOR_EACH_DEFINED_FUNCTION (node)
{
varinfo_t vi;
- /* Nodes without a body are not interesting. Especially do not
- visit clones at this point for now - we get duplicate decls
- there for inline clones at least. */
- if (!node->has_gimple_body_p () || node->inlined_to)
+ /* Nodes without a body in this partition are not interesting.
+ Especially do not visit clones at this point for now - we
+ get duplicate decls there for inline clones at least. */
+ if (!node->has_gimple_body_p ()
+ || node->in_other_partition
+ || node->inlined_to)
continue;
node->get_body ();
@@ -8301,8 +8303,10 @@ ipa_pta_execute (void)
struct function *func;
basic_block bb;
- /* Nodes without a body are not interesting. */
- if (!node->has_gimple_body_p () || node->clone_of)
+ /* Nodes without a body in this partition are not interesting. */
+ if (!node->has_gimple_body_p ()
+ || node->in_other_partition
+ || node->clone_of)
continue;
if (dump_file)
@@ -8431,8 +8435,10 @@ ipa_pta_execute (void)
unsigned i;
basic_block bb;
- /* Nodes without a body are not interesting. */
- if (!node->has_gimple_body_p () || node->clone_of)
+ /* Nodes without a body in this partition are not interesting. */
+ if (!node->has_gimple_body_p ()
+ || node->in_other_partition
+ || node->clone_of)
continue;
fn = DECL_STRUCT_FUNCTION (node->decl);