Make tree-ssa-dse.c:normalize_ref return a bool
commit5dae9486d92a0a69b9ef0d28e3282a18d50aba2b
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Nov 2017 15:44:18 +0000 (1 15:44 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Nov 2017 15:44:18 +0000 (1 15:44 +0000)
tree52aae78cf938c3b3a9d91213fc749f00eafc3720
parentf81dd217477dd52ee934f2ff2c36fdfc6fc4a939
Make tree-ssa-dse.c:normalize_ref return a bool

This patch moves the check for an overlapping byte to normalize_ref
from its callers, so that it's easier to convert to poly_ints later.
It's not really worth it on its own.

2017-11-01  Richard Sandiford  <richard.sandiford@linaro.org>

gcc/
* tree-ssa-dse.c (normalize_ref): Check whether the ranges overlap
and return false if not.
(clear_bytes_written_by, live_bytes_read): Update accordingly.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@254313 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/tree-ssa-dse.c