diff options
author | marxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-08-01 08:20:57 +0000 |
---|---|---|
committer | marxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-08-01 08:20:57 +0000 |
commit | 09809ecc2198b2c3368421dd9dde0f3abbcafd36 (patch) | |
tree | 34ecf6784681ee0ad5b65f264b03ec52f19e5524 /gcc/passes.c | |
parent | ba56faa0190a8b661fd822b213c8d9e7eea87f3a (diff) | |
download | gcc-09809ecc2198b2c3368421dd9dde0f3abbcafd36.tar.gz |
IPA ICF pass 1/N
* gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
* ipa-prop.h (count_formal_params): Global function created from static.
* ipa-prop.c (count_formal_params): Likewise.
* ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
profiles for semantically equivalent functions.
* passes.c (do_per_function): If we load body of a function
during WPA, this condition should behave same.
* varpool.c (ctor_for_folding): More tolerant assert for variable
aliases created during WPA.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213417 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/passes.c')
-rw-r--r-- | gcc/passes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/passes.c b/gcc/passes.c index 38485a75f0c..dea9de1432d 100644 --- a/gcc/passes.c +++ b/gcc/passes.c @@ -1478,7 +1478,7 @@ do_per_function (void (*callback) (function *, void *data), void *data) { struct cgraph_node *node; FOR_EACH_DEFINED_FUNCTION (node) - if (node->analyzed && gimple_has_body_p (node->decl) + if (node->analyzed && (gimple_has_body_p (node->decl) && !in_lto_p) && (!node->clone_of || node->decl != node->clone_of->decl)) callback (DECL_STRUCT_FUNCTION (node->decl), data); } |