Use modref summaries for byte-wise dead store elimination.
commit6dc90c4dbb6f9589dea9c670c3468496bb207de5
authorJan Hubicka <jh@suse.cz>
Tue, 16 Nov 2021 22:01:28 +0000 (16 23:01 +0100)
committerJan Hubicka <jh@suse.cz>
Tue, 16 Nov 2021 22:01:28 +0000 (16 23:01 +0100)
tree7edf8771b392b9a437bee0c50c5fd430b1603c0f
parent42cdf08ad84bfde669adaa80984fcf3b7f21ec69
Use modref summaries for byte-wise dead store elimination.

gcc/ChangeLog:

* ipa-modref.c (get_modref_function_summary): Declare.
* ipa-modref.h (get_modref_function_summary): New function.
* tree-ssa-dse.c (clear_live_bytes_for_ref): Break out from ...
(clear_bytes_written_by): ... here; also clear memory killed by
calls.

gcc/testsuite/ChangeLog:

* gcc.dg/tree-ssa/modref-dse-4.c: New test.
gcc/ipa-modref.c
gcc/ipa-modref.h
gcc/testsuite/gcc.dg/tree-ssa/modref-dse-4.c [new file with mode: 0644]
gcc/tree-ssa-dse.c