From: Martin Liska Date: Tue, 3 Mar 2015 12:10:57 +0000 (+0100) Subject: ICF: Use bit or instead of if branch. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=21ce14d309100d40a7f0340b66af22bf28f5ef5b;p=gcc.git ICF: Use bit or instead of if branch. * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or instead of if branch. From-SVN: r221147 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f2fd1ff6ffb..36aa08f0274 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-03-03 Martin Liska + + * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or + instead of if branch. + 2015-03-03 Martin Liska PR ipa/65282 diff --git a/gcc/ipa-icf.c b/gcc/ipa-icf.c index a47ca29aeea..b6173724785 100644 --- a/gcc/ipa-icf.c +++ b/gcc/ipa-icf.c @@ -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); } }