Make tree-ssa-dse.c:normalize_ref return a bool
authorRichard Sandiford <richard.sandiford@linaro.org>
Wed, 1 Nov 2017 15:44:18 +0000 (15:44 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 1 Nov 2017 15:44:18 +0000 (15:44 +0000)
commit4a110e3478460101b4c0d6591d7cdb0b1d3a276b
tree52aae78cf938c3b3a9d91213fc749f00eafc3720
parent7fc53ba4f8a0cecb7288ae04e32dfb38af016f57
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.

From-SVN: r254313
gcc/ChangeLog
gcc/tree-ssa-dse.c