ICF: Use bit or instead of if branch.
authorMartin Liska <mliska@suse.cz>
Tue, 3 Mar 2015 12:10:57 +0000 (13:10 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 3 Mar 2015 12:10:57 +0000 (12:10 +0000)
* ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
instead of if branch.

From-SVN: r221147

gcc/ChangeLog
gcc/ipa-icf.c

index f2fd1ff6ffb8a287fb07377a1d68b3f6976518fb..36aa08f02747ffb7496ee250ea4929f5a04f6168 100644 (file)
@@ -1,3 +1,8 @@
+2015-03-03  Martin Liska  <mliska@suse.cz>
+
+       * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
+       instead of if branch.
+
 2015-03-03  Martin Liska  <mliska@suse.cz>
 
        PR ipa/65282
index a47ca29aeea05216488ee92aa76b98c021f9927f..b61737247858f1621d0991e16d4eab2a0e4ec603 100644 (file)
@@ -2976,8 +2976,7 @@ sem_item_optimizer::merge_classes (unsigned int prev_class_count)
                alias->dump_to_file (dump_file);
              }
 
-           if (source->merge (alias))
-             merged_p = true;
+           merged_p |= source->merge (alias);
          }
       }