Speed up qsort in IPA ICF.
authorMartin Liska <mliska@suse.cz>
Thu, 19 Sep 2019 13:13:21 +0000 (15:13 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 19 Sep 2019 13:13:21 +0000 (13:13 +0000)
commit37bc3aa0474f21b7a678b09951634de3205d014e
tree3f3a62dfc37024ffa5b6ab2333427a62151fbe4f
parentd9e736e7194b524c3624172b896d5ace9cb459aa
Speed up qsort in IPA ICF.

2019-09-19  Martin Liska  <mliska@suse.cz>

* ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
(sort_congruence_classes_by_decl_uid): Likewise.
(sort_congruence_class_groups_by_decl_uid): Use std::pair for
easier sorting.
(sem_item_optimizer::merge_classes): Likewise.

From-SVN: r275961
gcc/ChangeLog
gcc/ipa-icf.c