PATCH: Separate processor model from ix86_tune
H.J. Lu
hjl.tools@gmail.com
Mon Sep 29 17:12:00 GMT 2008
On Fri, Sep 26, 2008 at 7:18 AM, Daniel Jacobowitz <drow@false.org> wrote:
> On Thu, Sep 25, 2008 at 07:37:21PM -0700, H.J. Lu wrote:
>> ix86_cpu is a variable internal to x86 backend where the cpu attribute is
>> used for scheduler. It is used to implement -mtune=XXX. It has nothing
>> to do with how -mtune=XXX should work.
>
> Then please call it something else.
>
Here is the updated patch to use ix86_schedule instead of
ix86_cpu. OK for trunk? Thanks.
--
H.J.
---
2008-09-29 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/i386-protos.h (ix86_schedule): New.
* config/i386/i386.c (ix86_schedule): New.
(override_options): Add schedule to processor_alias_table. Set
ix86_schedule from the schedule field in processor_alias_table.
(ix86_function_specific_save): Save ix86_schedule.
(ix86_function_specific_restore): Restore ix86_schedule.
* config/i386/i386.md (cpu): Map to ix86_schedule instead of
ix86_tune.
* config/i386/i386.opt: Add schedule.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-sched-2.patch
Type: application/octet-stream
Size: 11983 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080929/b008d9de/attachment.obj>
More information about the Gcc-patches
mailing list