+2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
+
+ * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
+ (ix86_adjust_cost): Use !TARGET_XXX.
+ (do_reorder_for_imul): Likewise.
+ (swap_top_of_ready_list): Likewise.
+ (ix86_sched_reorder): Likewise.
+
2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/i386-c.c (ix86_target_macros_internal): Handle
/* For Silvermont if using a 2-source or 3-source LEA for
non-destructive destination purposes, or due to wanting
ability to use SCALE, the use of LEA is justified. */
- if (ix86_tune == PROCESSOR_SILVERMONT || ix86_tune == PROCESSOR_INTEL)
+ if (TARGET_SILVERMONT || TARGET_INTEL)
{
if (has_scale)
return true;
/* Stack engine allows to execute push&pop instructions in parall. */
if (((insn_type == TYPE_PUSH || insn_type == TYPE_POP)
&& (dep_insn_type == TYPE_PUSH || dep_insn_type == TYPE_POP))
- && (ix86_tune != PROCESSOR_ATHLON && ix86_tune != PROCESSOR_K8))
+ && (!TARGET_ATHLON && !TARGET_K8))
return 0;
/* Show ability of reorder buffer to hide latency of load by executing
int index = -1;
int i;
- if (ix86_tune != PROCESSOR_BONNELL)
+ if (!TARGET_BONNELL)
return index;
/* Check that IMUL instruction is on the top of ready list. */
int clock2 = -1;
#define INSN_TICK(INSN) (HID (INSN)->tick)
- if (ix86_tune != PROCESSOR_SILVERMONT && ix86_tune != PROCESSOR_INTEL)
+ if (!TARGET_SILVERMONT && !TARGET_INTEL)
return false;
if (!NONDEBUG_INSN_P (top))
issue_rate = ix86_issue_rate ();
/* Do reodering for BONNELL/SILVERMONT only. */
- if (ix86_tune != PROCESSOR_BONNELL
- && ix86_tune != PROCESSOR_SILVERMONT
- && ix86_tune != PROCESSOR_INTEL)
+ if (!TARGET_BONNELL && !TARGET_SILVERMONT && !TARGET_INTEL)
return issue_rate;
/* Nothing to do if ready list contains only 1 instruction. */