Re: [5/11] Neater tests for paradoxical subregs

2011-07-05 Thread Richard Henderson
On 07/01/2011 10:33 AM, Bernd Schmidt wrote: > * emit-rtl.c (paradoxical_subreg_p): New function. > * rtl.h (paradoxical_subreg_p): Declare. > * combine.c (set_nonzero_bits_and_sign_copies, get_last_value, > apply_distributive_law, simplify_comparison, simplify_set): Use it.

[5/11] Neater tests for paradoxical subregs

2011-07-01 Thread Bernd Schmidt
Adds a new helper function, paradoxical_subreg_p, and uses that instead of explicit mode comparisons. The function now uses GET_MODE_PRECISION instead of GET_MODE_BITSIZE. Additional, some code in reload testing subreg modes is adjusted to do the same. Bernd * emit-rtl.c (paradoxical_sub