Two small optimizations to vrp pass

2016-05-02 Thread Patrick Palka
This patch 1. changes the need_assert_for bitmap into an sbitmap since its size is known to be at most num_ssa_names 2. changes a use of FOR_EACH_IMM_USE_STMT to a use of FOR_EACH_IMM_USE_FAST since the uses are only being read, not modified Does this look OK to commit after bootstrap and regtest

Re: Two small optimizations to vrp pass

2016-05-03 Thread Richard Biener
On Tue, May 3, 2016 at 4:07 AM, Patrick Palka wrote: > This patch > > 1. changes the need_assert_for bitmap into an sbitmap since its size is > known to be at most num_ssa_names But then it is redundant anyway as we have asserts_for[num_ssa_names], initialized to NULL. So bitmap_bit_p (need_asse