* tree-ssa-dse.c (live_bytes_read): Fix thinko.

From-SVN: r253792
This commit is contained in:
Jeff Law 2017-10-16 11:56:06 -06:00 committed by Jeff Law
parent 9b460e2e50
commit a279ae9354
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2017-10-16 Jeff Law <law@redhat.com>
* tree-ssa-dse.c (live_bytes_read): Fix thinko.
2017-10-16 Jan Hubicka <hubicka@ucw.cz>
* x86-tune-costs.h (znver1_cost): Fix move cost tables.

View file

@ -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;