Cleanup modref interfaces.
authorJan Hubicka <jh@suse.cz>
Wed, 23 Sep 2020 21:06:05 +0000 (23:06 +0200)
committerJan Hubicka <jh@suse.cz>
Wed, 23 Sep 2020 21:06:05 +0000 (23:06 +0200)
commite977dd5edbcc3a3b88c3bd7efa1026c845af7487
tree6603e18a37391e417b8b2c1e3821f747bf039c3d
parente92779db3304bc96a6b861f87c5edde8dd4d4030
Cleanup modref interfaces.

* ipa-fnsummary.c (refs_local_or_readonly_memory_p): New function.
(points_to_local_or_readonly_memory_p): New function.
* ipa-fnsummary.h (refs_local_or_readonly_memory_p): Declare.
(points_to_local_or_readonly_memory_p): Declare.
* ipa-modref.c (record_access_p): Use refs_local_or_readonly_memory_p.
* ipa-pure-const.c (check_op): Likewise.

* gcc.dg/tree-ssa/local-pure-const.c: Update template.
gcc/ipa-fnsummary.c
gcc/ipa-fnsummary.h
gcc/ipa-modref.c
gcc/ipa-pure-const.c
gcc/testsuite/gcc.dg/tree-ssa/local-pure-const.c