Handle loop fields in IPA ICF (PR ipa/90555).
authorMartin Liska <mliska@suse.cz>
Tue, 28 May 2019 11:42:46 +0000 (13:42 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 28 May 2019 11:42:46 +0000 (11:42 +0000)
commit8d2a3107980a1db83ab0d4bdc74e8c00e558b57b
treeb5ae2bf84c0e11107f83f9f18bb803bb50ba8776
parentabdb813b23c039aa2b8f3f66cbbe618c12fefe2b
Handle loop fields in IPA ICF (PR ipa/90555).

2019-05-28  Martin Liska  <mliska@suse.cz>

PR ipa/90555
* ipa-icf-gimple.c (func_checker::compare_loops): New function.
* ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
(func_checker::compare_bb): Call compare_loops.
2019-05-28  Martin Liska  <mliska@suse.cz>

PR ipa/90555
* gcc.dg/ipa/pr90555.c: New test.

From-SVN: r271695
gcc/ChangeLog
gcc/ipa-icf-gimple.c
gcc/ipa-icf-gimple.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ipa/pr90555.c [new file with mode: 0644]