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
This commit is contained in:
parent
ceeae2d125
commit
31ff3e0b77
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
|||
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,
|
||||
|
|
Loading…
Add table
Reference in a new issue