This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/22067] Inconsistent multiply by immediate
- From: "dje at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Sep 2005 04:28:04 -0000
- Subject: [Bug middle-end/22067] Inconsistent multiply by immediate
- References: <20050614211850.22067.pthaugen@us.ibm.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From dje at gcc dot gnu dot org 2005-09-17 04:28 -------
I think the patch in attachment 9747 that subtracts the cost of operand0 is the
correct solution. One generally does want the cost of the operands included, so
rtx_costs is correct. choose_mult_variant would consider too long a sequence if
it *added* the cost of operand0, so the correct solution appears to be
subtracting the cost.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |dje at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22067