expr.c (store_constructor): Use EXACT_DIV_EXPR when dividend is known to be multiple of divisor.

* expr.c (store_constructor): Use EXACT_DIV_EXPR when dividend is
	known to be multiple of divisor.

From-SVN: r30677
This commit is contained in:
Richard Kenner 1999-11-27 14:55:36 +00:00 committed by Richard Kenner
parent dd1db5ec31
commit 9f887d05bb
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
Sat Nov 27 08:38:26 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* expr.c (store_constructor): Use EXACT_DIV_EXPR when dividend is
known to be multiple of divisor.
* expr.c (store_constructor): Don't clobber TARGET if CLEARED.
* combine.c (try_combine): Add code to try to merge a set of a

View File

@ -4185,7 +4185,7 @@ store_constructor (exp, target, align, cleared)
offset = build (WITH_RECORD_EXPR, sizetype,
offset, make_tree (TREE_TYPE (exp), target));
offset = size_binop (FLOOR_DIV_EXPR, offset,
offset = size_binop (EXACT_DIV_EXPR, offset,
size_int (BITS_PER_UNIT));
offset_rtx = expand_expr (offset, NULL_RTX, VOIDmode, 0);