This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/22067] Inconsistent multiply by immediate


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]