This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PING][PATCH][REVISED] Fix PR middle-end/PR28690, modify swap_commutative_operands_p
- From: Peter Bergner <bergner at vnet dot ibm dot com>
- To: bonzini at gnu dot org
- Cc: "H.J. Lu" <hjl at lucon dot org>, Jakub Jelinek <jakub at redhat dot com>, Pat Haugen <pthaugen at us dot ibm dot com>, Dave Korn <dave dot korn at artimi dot com>, gcc-patches at gcc dot gnu dot org, Ian Lance Taylor <iant at google dot com>, Rask Ingemann Lambertsen <rask at sygehus dot dk>, Richard Guenther <richard dot guenther at gmail dot com>, michael dot meissner at amd dot com
- Date: Mon, 16 Jul 2007 08:14:37 -0500
- Subject: Re: [PING][PATCH][REVISED] Fix PR middle-end/PR28690, modify swap_commutative_operands_p
- References: <20070713201841.GA379@lucon.org> <1184360613.8319.104.camel@otta> <20070713214537.GA790@lucon.org> <1184385600.8319.168.camel@otta> <20070714042014.GA2405@lucon.org> <46987A58.9000009@lu.unisi.ch> <20070714142529.GA7558@lucon.org> <1184427514.8319.188.camel@otta> <20070714164844.GA8173@lucon.org> <20070714165618.GA8223@lucon.org> <20070715133539.GA1500@lucon.org> <1184559613.6670.59.camel@otta> <469B0A8B.5070200@lu.unisi.ch>
On Mon, 2007-07-16 at 09:04 +0300, Paolo Bonzini wrote:
> What you suggest can also be obtained with:
>
> - if (simplify_plus_minus_op_data_cmp (&ops[j], &ops[i]) < 0)
> + if (simplify_plus_minus_op_data_cmp (&ops[j], &ops[i]) <= 0)
Right. However, if the REGNO sorting in swap_commutative_operands_p
stays, then we can just use swap_commutative_operands_p instead of
simplify_plus_minus_op_data_cmp. If we end up removing that part of
the patch, then the above is the correct fix. Which should probably
be applied as a cleanup along with Jakub's cleanup fix (the 2nd patch)
that he mentioned here:
http://gcc.gnu.org/ml/gcc-patches/2007-07/msg00895.html
Peter
- References:
- Re: [PING][PATCH][REVISED] Fix PR middle-end/PR28690, modify swap_commutative_operands_p
- Re: [PING][PATCH][REVISED] Fix PR middle-end/PR28690, modify swap_commutative_operands_p
- Re: [PING][PATCH][REVISED] Fix PR middle-end/PR28690, modify swap_commutative_operands_p
- Re: [PING][PATCH][REVISED] Fix PR middle-end/PR28690, modify swap_commutative_operands_p
- Re: [PING][PATCH][REVISED] Fix PR middle-end/PR28690, modify swap_commutative_operands_p
- Re: [PING][PATCH][REVISED] Fix PR middle-end/PR28690, modify swap_commutative_operands_p
- Re: [PING][PATCH][REVISED] Fix PR middle-end/PR28690, modify swap_commutative_operands_p
- Re: [PING][PATCH][REVISED] Fix PR middle-end/PR28690, modify swap_commutative_operands_p
- Re: [PING][PATCH][REVISED] Fix PR middle-end/PR28690, modify swap_commutative_operands_p
- Re: [PING][PATCH][REVISED] Fix PR middle-end/PR28690, modify swap_commutative_operands_p
- Re: [PING][PATCH][REVISED] Fix PR middle-end/PR28690, modify swap_commutative_operands_p
- Re: [PING][PATCH][REVISED] Fix PR middle-end/PR28690, modify swap_commutative_operands_p
- Re: [PING][PATCH][REVISED] Fix PR middle-end/PR28690, modify swap_commutative_operands_p