Fix access node merging
authorJan Hubicka <jh@suse.cz>
Thu, 7 Oct 2021 13:26:01 +0000 (15:26 +0200)
committerJan Hubicka <jh@suse.cz>
Thu, 7 Oct 2021 13:26:01 +0000 (15:26 +0200)
commit44b61586d8640b79e78cfdb6a555200ccee8df77
tree280264cbb63b2964235bcfec1408eba79dc479dd
parent348b426be3fc99453b42e79a18331c7bf24ee0dc
Fix access node merging

gcc/ChangeLog:

2021-10-07  Jan Hubicka  <hubicka@ucw.cz>

PR ipa/102581
* ipa-modref-tree.h (modref_access_node::contains_p): Handle offsets
better.
(modref_access_node::try_merge_with): Add sanity check that there
are no redundant entries in the list.

gcc/testsuite/ChangeLog:

2021-10-07  Jan Hubicka  <hubicka@ucw.cz>

* g++.dg/torture/pr102581.C: New test.
gcc/ipa-modref-tree.h
gcc/testsuite/g++.dg/torture/pr102581.C [new file with mode: 0644]