combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out unnecessary bits in the constant power of two case.
2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com> * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out unnecessary bits in the constant power of two case. From-SVN: r197666
This commit is contained in:
parent
abf9bfbc31
commit
34ab4a5b70
@ -1,3 +1,8 @@
|
||||
2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
|
||||
|
||||
* combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
|
||||
unnecessary bits in the constant power of two case.
|
||||
|
||||
2013-04-10 Richard Biener <rguenther@suse.de>
|
||||
|
||||
* tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
|
||||
|
@ -10759,8 +10759,9 @@ simplify_compare_const (enum rtx_code code, rtx op0, rtx *pop1)
|
||||
&& (code == EQ || code == NE || code == GE || code == GEU
|
||||
|| code == LT || code == LTU)
|
||||
&& mode_width <= HOST_BITS_PER_WIDE_INT
|
||||
&& exact_log2 (const_op) >= 0
|
||||
&& nonzero_bits (op0, mode) == (unsigned HOST_WIDE_INT) const_op)
|
||||
&& exact_log2 (const_op & GET_MODE_MASK (mode)) >= 0
|
||||
&& (nonzero_bits (op0, mode)
|
||||
== (unsigned HOST_WIDE_INT) (const_op & GET_MODE_MASK (mode))))
|
||||
{
|
||||
code = (code == EQ || code == GE || code == GEU ? NE : EQ);
|
||||
const_op = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user