diff options
author | Jeff Law <law@redhat.com> | 2017-10-16 11:56:06 -0600 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2017-10-16 11:56:06 -0600 |
commit | a279ae9354f485846ec44cda4ebde19ba025359b (patch) | |
tree | 8ed9e2cece867029b8a2b62238419c67f663af31 /gcc/tree-ssa-dse.c | |
parent | 9b460e2e50613e70e0e669cd813536c7288d58ea (diff) | |
download | gcc-a279ae9354f485846ec44cda4ebde19ba025359b.zip gcc-a279ae9354f485846ec44cda4ebde19ba025359b.tar.gz gcc-a279ae9354f485846ec44cda4ebde19ba025359b.tar.bz2 |
* tree-ssa-dse.c (live_bytes_read): Fix thinko.
From-SVN: r253792
Diffstat (limited to 'gcc/tree-ssa-dse.c')
-rw-r--r-- | gcc/tree-ssa-dse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-dse.c b/gcc/tree-ssa-dse.c index 9d6cb14..c1a6475 100644 --- a/gcc/tree-ssa-dse.c +++ b/gcc/tree-ssa-dse.c @@ -493,7 +493,7 @@ live_bytes_read (ao_ref use_ref, ao_ref *ref, sbitmap live) /* Now check if any of the remaining bits in use_ref are set in LIVE. */ unsigned int start = (use_ref.offset - ref->offset) / BITS_PER_UNIT; - unsigned int end = ((use_ref.offset + use_ref.size) / BITS_PER_UNIT) - 1; + unsigned int end = start + (use_ref.size / BITS_PER_UNIT) - 1; return bitmap_bit_in_range_p (live, start, end); } return true; |