Commit a279ae93 by Jeff Law Committed by Jeff Law

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

From-SVN: r253792
parent 9b460e2e
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.
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment