This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/53176] [4.8 Regression] gcc.target/i386/movbe-2.c and gcc.dg/lower-subreg-1.c
- From: "hp at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 02 May 2012 22:22:54 +0000
- Subject: [Bug rtl-optimization/53176] [4.8 Regression] gcc.target/i386/movbe-2.c and gcc.dg/lower-subreg-1.c
- Auto-submitted: auto-generated
- References: <bug-53176-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53176
--- Comment #8 from Hans-Peter Nilsson <hp at gcc dot gnu.org> 2012-05-02 22:22:54 UTC ---
(In reply to comment #7)
> I contacted iant before I started this, and he said that the proper plan
> is to use the rtl cost model. So that is what we did. The alternative
> is to define a bunch of special target hooks and no one seemed to want
> to go there.
Agreed. Hopefully most targets are fixed by multiplying the current target rtx
cost implementation with the size of the mode; I'll try that.
Actually, I think that's what rtlanal.c:rtx_cost should be changed to do, for
the cases where the targetm.rtx_costs function returns false.