ira-color.c (setup_left_conflict_sizes_p): Simplify initialization/assignment of...
authorZhouyi Zhou <yizhouzhou@ict.ac.cn>
Tue, 10 Feb 2015 01:44:18 +0000 (01:44 +0000)
committerJeff Law <law@gcc.gnu.org>
Tue, 10 Feb 2015 01:44:18 +0000 (18:44 -0700)
       * ira-color.c (setup_left_conflict_sizes_p): Simplify
        initialization/assignment of conflict_size.

From-SVN: r220560

gcc/ChangeLog
gcc/ira-color.c

index 47574709f40491853bbee5a7ed764485f6aeb276..83bc9112535bf33cb0a3e1609fee2cdae243f822 100644 (file)
@@ -1,3 +1,8 @@
+2015-02-09  Zhouyi Zhou   <yizhouzhou@ict.ac.cn>
+
+       * ira-color.c (setup_left_conflict_sizes_p): Simplify
+       initialization/assignment of conflict_size.
+
 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
 
        PR ipa/64978
index d04be29ff4f1207df03ef59a22addea65fd2a6ed..b77ff69e645aebc3ca403f07193046cb44dc05db 100644 (file)
@@ -858,7 +858,6 @@ setup_left_conflict_sizes_p (ira_allocno_t a)
   HARD_REG_SET node_set;
 
   nobj = ALLOCNO_NUM_OBJECTS (a);
-  conflict_size = 0;
   data = ALLOCNO_COLOR_DATA (a);
   subnodes = allocno_hard_regs_subnodes + data->hard_regs_subnodes_start;
   COPY_HARD_REG_SET (profitable_hard_regs, data->profitable_hard_regs);
@@ -959,9 +958,9 @@ setup_left_conflict_sizes_p (ira_allocno_t a)
     }
   left_conflict_subnodes_size = subnodes[0].left_conflict_subnodes_size;
   conflict_size
-    += (left_conflict_subnodes_size
-       + MIN (subnodes[0].max_node_impact - left_conflict_subnodes_size,
-              subnodes[0].left_conflict_size));
+    = (left_conflict_subnodes_size
+       + MIN (subnodes[0].max_node_impact - left_conflict_subnodes_size,
+             subnodes[0].left_conflict_size));
   conflict_size += ira_reg_class_max_nregs[ALLOCNO_CLASS (a)][ALLOCNO_MODE (a)];
   data->colorable_p = conflict_size <= data->available_regs_num;
   return data->colorable_p;