diff options
author | Po-Chun Chang <pchang9@cs.wisc.edu> | 2013-05-17 21:12:34 +0000 |
---|---|---|
committer | Martin Jambor <jamborm@gcc.gnu.org> | 2013-05-17 23:12:34 +0200 |
commit | c3272a921a1492fcc4e437580d718f423f4e32db (patch) | |
tree | c42cc155aced0ce39dde43a9d8cbe4a4c22b33a5 | |
parent | 11c2aa398495eb3c49dc63de325237bb0945b472 (diff) | |
download | gcc-c3272a921a1492fcc4e437580d718f423f4e32db.zip gcc-c3272a921a1492fcc4e437580d718f423f4e32db.tar.gz gcc-c3272a921a1492fcc4e437580d718f423f4e32db.tar.bz2 |
re PR middle-end/57276 (Waste work in cgraph_edge_brings_all_agg_vals_for_node())
2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
Martin Jambor <mjambor@suse.cz>
PR middle-end/57276
* ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
value that corresponds to the given aggval is found in values vector.
Co-Authored-By: Martin Jambor <mjambor@suse.cz>
From-SVN: r199035
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/ipa-cp.c | 5 |
2 files changed, 11 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 14ce924..7fce202 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu> + Martin Jambor <mjambor@suse.cz> + + PR middle-end/57276 + * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a + value that corresponds to the given aggval is found in values vector. + 2013-05-17 Uros Bizjak <ubizjak@gmail.com> * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow, diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c index 40c946d..4bb1754 100644 --- a/gcc/ipa-cp.c +++ b/gcc/ipa-cp.c @@ -3213,7 +3213,10 @@ cgraph_edge_brings_all_agg_vals_for_node (struct cgraph_edge *cs, if (item->value && item->offset == av->offset && values_equal_for_ipcp_p (item->value, av->value)) - found = true; + { + found = true; + break; + } if (!found) { values.release(); |