fold-const.c (extract_muldiv, [...]): Only adjust code for division, not modulus.
* fold-const.c (extract_muldiv, case PLUS_EXPR): Only adjust code for division, not modulus. From-SVN: r45763
This commit is contained in:
parent
a0fd557a09
commit
0629440fd8
@ -1,5 +1,8 @@
|
||||
Sun Sep 23 18:19:48 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
|
||||
|
||||
* fold-const.c (extract_muldiv, case PLUS_EXPR): Only adjust
|
||||
code for division, not modulus.
|
||||
|
||||
* rtl.def (MEM): Remove obsolete part of comment.
|
||||
|
||||
2001-09-22 Joseph S. Myers <jsm28@cam.ac.uk>
|
||||
|
@ -4580,13 +4580,10 @@ extract_muldiv (t, c, code, wide_type)
|
||||
{
|
||||
if (code == CEIL_DIV_EXPR)
|
||||
code = FLOOR_DIV_EXPR;
|
||||
else if (code == CEIL_MOD_EXPR)
|
||||
code = FLOOR_MOD_EXPR;
|
||||
else if (code == FLOOR_DIV_EXPR)
|
||||
code = CEIL_DIV_EXPR;
|
||||
else if (code == FLOOR_MOD_EXPR)
|
||||
code = CEIL_MOD_EXPR;
|
||||
else if (code != MULT_EXPR)
|
||||
else if (code != MULT_EXPR
|
||||
&& code != CEIL_MOD_EXPR && code != FLOOR_MOD_EXPR)
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user