From 21ce14d309100d40a7f0340b66af22bf28f5ef5b Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Tue, 3 Mar 2015 13:10:57 +0100 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/ipa-icf.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) 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); } } -- 2.30.2