[PATCH] Handle loop fields in IPA ICF (PR ipa/90555).

Martin Liška mliska@suse.cz
Fri May 24 07:48:00 GMT 2019


Hi.

The patch is about more fine comparison of loop fields that
are mentioned in the PR.

Patch can bootstrap on x86_64-linux-gnu and survives regression tests.

Ready to be installed?
Thanks,
Martin

gcc/ChangeLog:

2019-05-23  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.
	* ipa-icf.c (sem_function::equals_private): Use compare_loops.

gcc/testsuite/ChangeLog:

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

	PR ipa/90555
	* gcc.dg/ipa/pr90555.c: New test.
---
 gcc/ipa-icf-gimple.c               | 40 ++++++++++++++++++
 gcc/ipa-icf-gimple.h               |  3 ++
 gcc/ipa-icf.c                      |  3 ++
 gcc/testsuite/gcc.dg/ipa/pr90555.c | 67 ++++++++++++++++++++++++++++++
 4 files changed, 113 insertions(+)
 create mode 100644 gcc/testsuite/gcc.dg/ipa/pr90555.c


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Handle-loop-fields-in-IPA-ICF-PR-ipa-90555.patch
Type: text/x-patch
Size: 4250 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190524/dfa2fbce/attachment.bin>


More information about the Gcc-patches mailing list