------- Comment #3 from pinskia at gcc dot gnu dot org 2010-07-09 00:06 ------- (In reply to comment #2) > Give it a single register, the cost is 6. Give it the rtx (plus (reg 144) (reg > 143)), the cost is 4. So a single register is more expensive than a plus > expression, not reasonable.
And that causes forwprop to do what it does; it is a lower total cost according to the cost function :). -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords| |missed-optimization Last reconfirmed|0000-00-00 00:00:00 |2010-07-09 00:06:33 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44883