diff options
author | Richard Biener <rguenther@suse.de> | 2014-10-27 11:41:14 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2014-10-27 11:41:14 +0000 |
commit | 60e090457173cf49cc6cff42fb35acdb4e482f20 (patch) | |
tree | 2cddcf2715f9077d0c950f1a974ad7cf71bbe44f | |
parent | 98ae260da1002b9bbf803a267407d84a76076191 (diff) | |
download | gcc-60e090457173cf49cc6cff42fb35acdb4e482f20.zip gcc-60e090457173cf49cc6cff42fb35acdb4e482f20.tar.gz gcc-60e090457173cf49cc6cff42fb35acdb4e482f20.tar.bz2 |
match.pd (0 % X): Properly use the iterator iterating over all modulo operators.
2014-10-27 Richard Biener <rguenther@suse.de>
* match.pd (0 % X): Properly use the iterator iterating over
all modulo operators.
(X % 1): Likewise.
From-SVN: r216732
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/match.pd | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d11aae9..18ca353 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,11 @@ 2014-10-27 Richard Biener <rguenther@suse.de> + * match.pd (0 % X): Properly use the iterator iterating over + all modulo operators. + (X % 1): Likewise. + +2014-10-27 Richard Biener <rguenther@suse.de> + * tree-ssa-forwprop.c: Include tree-cfgcleanup.h and tree-into-ssa.h. (lattice): New global. (fwprop_ssa_val): New function. diff --git a/gcc/match.pd b/gcc/match.pd index aa2afc2..3e6b25c 100644 --- a/gcc/match.pd +++ b/gcc/match.pd @@ -64,13 +64,13 @@ along with GCC; see the file COPYING3. If not see (for op (ceil_mod floor_mod round_mod trunc_mod) /* 0 % X is always zero. */ (simplify - (trunc_mod integer_zerop@0 @1) + (op integer_zerop@0 @1) /* But not for 0 % 0 so that we can get the proper warnings and errors. */ (if (!integer_zerop (@1)) @0)) /* X % 1 is always zero. */ (simplify - (trunc_mod @0 integer_onep) + (op @0 integer_onep) { build_zero_cst (type); })) /* x | ~0 -> ~0 */ |