Commit 31ff3e0b by Roger Sayle Committed by Roger Sayle

re PR rtl-optimization/1823 (-ftrapv aborts with pointer difference due to division optimization)


	PR optimization/1823
	* expmed.c (expand_divmod <EXACT_DIV_EXPR>): Use an unsigned
	multiplication to implement division by constant integer.

Co-Authored-By: Richard Henderson <rth@redhat.com>

From-SVN: r71116
parent ceeae2d1
2003-09-05 Roger Sayle <roger@eyesopen.com>
Richard Henderson <rth@redhat.com>
PR optimization/1823
* expmed.c (expand_divmod <EXACT_DIV_EXPR>): Use an unsigned
multiplication to implement division by constant integer.
Fri Sep 5 07:35:16 CEST 2003 Jan Hubicka <jh@suse.cz>
* opts.c (decode_options): Enable unit-at-a-time at -O2.
......
......@@ -3824,7 +3824,7 @@ expand_divmod (int rem_flag, enum tree_code code, enum machine_mode mode,
build_int_2 (pre_shift, 0), NULL_RTX, unsignedp);
quotient = expand_mult (compute_mode, t1,
gen_int_mode (ml, compute_mode),
NULL_RTX, 0);
NULL_RTX, 1);
insn = get_last_insn ();
set_unique_reg_note (insn,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment