]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR middle-end/57276 (Waste work in cgraph_edge_brings_all_agg_vals_for_node())
authorPo-Chun Chang <pchang9@cs.wisc.edu>
Fri, 17 May 2013 21:12:34 +0000 (21:12 +0000)
committerMartin Jambor <jamborm@gcc.gnu.org>
Fri, 17 May 2013 21:12:34 +0000 (23:12 +0200)
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

gcc/ChangeLog
gcc/ipa-cp.c

index 14ce924cbcd9f2a4c6e06ef6ac15a62fbc27776b..7fce202e6fc504ecbe83ac0682ed6f618e5e2279 100644 (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,
index 40c946dc1f110d8c979ddff424da8b9428de6056..4bb1754d2b5b20446590b5f93c3dc299e972e3e4 100644 (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();