diff options
author | Richard Biener <rguenther@suse.de> | 2016-12-20 12:49:31 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2016-12-20 12:49:31 +0000 |
commit | a676a9a8c5a0dbd81ebcd294afd153b7f62171d6 (patch) | |
tree | a500a81f47d2e0e71d1b9f1f1422fa723c3260e6 /gcc/passes.c | |
parent | 2a1d4076c463ea534209b5e1b53089521321133b (diff) | |
download | gcc-a676a9a8c5a0dbd81ebcd294afd153b7f62171d6.zip gcc-a676a9a8c5a0dbd81ebcd294afd153b7f62171d6.tar.gz gcc-a676a9a8c5a0dbd81ebcd294afd153b7f62171d6.tar.bz2 |
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
Diffstat (limited to 'gcc/passes.c')
-rw-r--r-- | gcc/passes.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/passes.c b/gcc/passes.c index 51d0d84..d11b712 100644 --- a/gcc/passes.c +++ b/gcc/passes.c @@ -2321,7 +2321,10 @@ execute_one_pass (opt_pass *pass) && (cfun->curr_properties & PROP_ssa)) { 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 of a pass (where N does not necessarily is equal to the @@ -2338,6 +2341,9 @@ execute_one_pass (opt_pass *pass) return true; } } + /* And also run any property provider. */ + else if (pass->properties_provided != 0) + ; else return true; } |