mirror of git://gcc.gnu.org/git/gcc.git
passes.c (execute_one_pass): Handle going out of SSA w/o hitting pass_startwith.
2016-12-20 Richard Biener <rguenther@suse.de> * passes.c (execute_one_pass): Handle going out of SSA w/o hitting pass_startwith. Handle skipping property providers. * gcc.dg/gimplefe-19.c: New testcase. From-SVN: r243822
This commit is contained in:
parent
2a1d4076c4
commit
a676a9a8c5
|
|
@ -1,3 +1,8 @@
|
||||||
|
2016-12-20 Richard Biener <rguenther@suse.de>
|
||||||
|
|
||||||
|
* passes.c (execute_one_pass): Handle going out of SSA w/o
|
||||||
|
hitting pass_startwith. Handle skipping property providers.
|
||||||
|
|
||||||
2016-12-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
|
2016-12-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
|
||||||
|
|
||||||
PR target/78694
|
PR target/78694
|
||||||
|
|
|
||||||
|
|
@ -2321,7 +2321,10 @@ execute_one_pass (opt_pass *pass)
|
||||||
&& (cfun->curr_properties & PROP_ssa))
|
&& (cfun->curr_properties & PROP_ssa))
|
||||||
{
|
{
|
||||||
size_t namelen = strlen (pass->name);
|
size_t namelen = strlen (pass->name);
|
||||||
if (! strncmp (pass->name, cfun->pass_startwith, namelen))
|
/* We have to at least start when we leave SSA. */
|
||||||
|
if (pass->properties_destroyed & PROP_ssa)
|
||||||
|
cfun->pass_startwith = NULL;
|
||||||
|
else if (! strncmp (pass->name, cfun->pass_startwith, namelen))
|
||||||
{
|
{
|
||||||
/* The following supports starting with the Nth invocation
|
/* The following supports starting with the Nth invocation
|
||||||
of a pass (where N does not necessarily is equal to the
|
of a pass (where N does not necessarily is equal to the
|
||||||
|
|
@ -2338,6 +2341,9 @@ execute_one_pass (opt_pass *pass)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* And also run any property provider. */
|
||||||
|
else if (pass->properties_provided != 0)
|
||||||
|
;
|
||||||
else
|
else
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
2016-12-20 Richard Biener <rguenther@suse.de>
|
||||||
|
|
||||||
|
* gcc.dg/gimplefe-19.c: New testcase.
|
||||||
|
|
||||||
2016-12-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
|
2016-12-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
|
||||||
|
|
||||||
PR target/78694
|
PR target/78694
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
/* { dg-do compile } */
|
||||||
|
/* { dg-options "-fgimple" } */
|
||||||
|
|
||||||
|
void __GIMPLE (startwith ("ccp1")) foo ()
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue