This is the mail archive of the gcc-patches@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] |
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.
The cpu attributes, i386, i486, pentium4 and nocona, aren't really
used. They exist only to map attr_cpu to processor_type so that
CPU_XXX == PROCESSOR_XXX. When we de-couple attr_cpu
from processor_type, they aren't needed at all. Since we use
CPU_PENTIUMPRO for -mtune=generic32, we can remove
CPU_GENERIC32 and use CPU_PENTIUMPRO directly instead.
It will make scheduler faster for -mtune=generic32. OK for trunk?
+ {"core2", PROCESSOR_CORE2, CPU_CORE2, + (PTA_64BIT | PTA_MMX | PTA_SSE | PTA_SSE2 | PTA_SSE3 + | PTA_SSSE3 | PTA_CX16)},
Thanks, Uros.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |