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
This commit is contained in:
Po-Chun Chang 2013-05-17 21:12:34 +00:00 committed by Martin Jambor
parent 11c2aa3984
commit c3272a921a
2 changed files with 11 additions and 1 deletions

View File

@ -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,

View File

@ -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();