diff options
author | Zdenek Dvorak <ook@ucw.cz> | 2007-09-11 15:38:08 +0200 |
---|---|---|
committer | Zdenek Dvorak <rakdver@gcc.gnu.org> | 2007-09-11 13:38:08 +0000 |
commit | e6ebd07f479b258643f61e4b49dc954b336142d5 (patch) | |
tree | 8f1cf87dd8e7689485e38dda056030edaadbd29e /gcc/fold-const.c | |
parent | e18d6a151c6c0a45cd30f150de87f1fb5c10f199 (diff) | |
download | gcc-e6ebd07f479b258643f61e4b49dc954b336142d5.zip gcc-e6ebd07f479b258643f61e4b49dc954b336142d5.tar.gz gcc-e6ebd07f479b258643f61e4b49dc954b336142d5.tar.bz2 |
fold-const.c (extract_muldiv_1): Do not simplify var * c * c to var.
* fold-const.c (extract_muldiv_1): Do not simplify
var * c * c to var.
From-SVN: r128375
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index a6fb08b..fb664fe 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -6273,7 +6273,8 @@ extract_muldiv_1 (tree t, tree c, enum tree_code code, tree wide_type, && ((code == MULT_EXPR && tcode == EXACT_DIV_EXPR) || (tcode == MULT_EXPR && code != TRUNC_MOD_EXPR && code != CEIL_MOD_EXPR - && code != FLOOR_MOD_EXPR && code != ROUND_MOD_EXPR))) + && code != FLOOR_MOD_EXPR && code != ROUND_MOD_EXPR + && code != MULT_EXPR))) { if (integer_zerop (const_binop (TRUNC_MOD_EXPR, op1, c, 0))) { |