match.pd (x | 0 -> x): Add.
2016-08-19 Richard Biener <rguenther@suse.de> * match.pd (x | 0 -> x): Add. From-SVN: r239606
This commit is contained in:
parent
1a5da5b66a
commit
ca0b7ecec7
@ -1,3 +1,7 @@
|
|||||||
|
2016-08-19 Richard Biener <rguenther@suse.de>
|
||||||
|
|
||||||
|
* match.pd (x | 0 -> x): Add.
|
||||||
|
|
||||||
2016-08-19 Richard Biener <rguenther@suse.de>
|
2016-08-19 Richard Biener <rguenther@suse.de>
|
||||||
|
|
||||||
PR tree-optimization/77286
|
PR tree-optimization/77286
|
||||||
|
13
gcc/match.pd
13
gcc/match.pd
@ -541,13 +541,18 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT)
|
|||||||
|
|
||||||
/* x | ~0 -> ~0 */
|
/* x | ~0 -> ~0 */
|
||||||
(simplify
|
(simplify
|
||||||
(bit_ior @0 integer_all_onesp@1)
|
(bit_ior @0 integer_all_onesp@1)
|
||||||
@1)
|
@1)
|
||||||
|
|
||||||
|
/* x | 0 -> x */
|
||||||
|
(simplify
|
||||||
|
(bit_ior @0 integer_zerop)
|
||||||
|
@0)
|
||||||
|
|
||||||
/* x & 0 -> 0 */
|
/* x & 0 -> 0 */
|
||||||
(simplify
|
(simplify
|
||||||
(bit_and @0 integer_zerop@1)
|
(bit_and @0 integer_zerop@1)
|
||||||
@1)
|
@1)
|
||||||
|
|
||||||
/* ~x | x -> -1 */
|
/* ~x | x -> -1 */
|
||||||
/* ~x ^ x -> -1 */
|
/* ~x ^ x -> -1 */
|
||||||
|
Loading…
Reference in New Issue
Block a user