/* Transformations based on profile information for values.
- Copyright (C) 2003 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2004 Free Software Foundation, Inc.
This file is part of GCC.
(*n_values)++;
}
- /* For mod, check whether it is not often a noop (or replacable by
+ /* For mod, check whether it is not often a noop (or replaceable by
a few subtractions). */
if (GET_CODE (set_src) == UMOD && !side_effects_p (op1))
{
switch ((*values)[i].type)
{
case HIST_TYPE_INTERVAL:
- if (rtl_dump_file)
- fprintf (rtl_dump_file,
+ if (dump_file)
+ fprintf (dump_file,
"Interval counter for insn %d, range %d -- %d.\n",
INSN_UID ((*values)[i].insn),
(*values)[i].hdata.intvl.int_start,
break;
case HIST_TYPE_POW2:
- if (rtl_dump_file)
- fprintf (rtl_dump_file,
+ if (dump_file)
+ fprintf (dump_file,
"Pow2 counter for insn %d.\n",
INSN_UID ((*values)[i].insn));
(*values)[i].n_counters = GET_MODE_BITSIZE ((*values)[i].mode) +
break;
case HIST_TYPE_SINGLE_VALUE:
- if (rtl_dump_file)
- fprintf (rtl_dump_file,
+ if (dump_file)
+ fprintf (dump_file,
"Single value counter for insn %d.\n",
INSN_UID ((*values)[i].insn));
(*values)[i].n_counters = 3;
break;
case HIST_TYPE_CONST_DELTA:
- if (rtl_dump_file)
- fprintf (rtl_dump_file,
+ if (dump_file)
+ fprintf (dump_file,
"Constant delta counter for insn %d.\n",
INSN_UID ((*values)[i].insn));
(*values)[i].n_counters = 4;
if (!maybe_hot_bb_p (BLOCK_FOR_INSN (insn)))
continue;
- if (rtl_dump_file)
+ if (dump_file)
{
- fprintf (rtl_dump_file, "Trying transformations on insn %d\n",
+ fprintf (dump_file, "Trying transformations on insn %d\n",
INSN_UID (insn));
- print_rtl_single (rtl_dump_file, insn);
+ print_rtl_single (dump_file, insn);
}
/* Transformations: */
histogram = XEXP (histogram, 1);
all = INTVAL (XEXP (histogram, 0));
- /* We requiere that count is at least half of all; this means
+ /* We require that count is at least half of all; this means
that for the transformation to fire the value must be constant
- at least 50% of time (and 75% gives the garantee of usage). */
+ at least 50% of time (and 75% gives the guarantee of usage). */
if (!rtx_equal_p (op2, value) || 2 * count < all)
return false;
- if (rtl_dump_file)
- fprintf (rtl_dump_file, "Div/mod by constant transformation on insn %d\n",
+ if (dump_file)
+ fprintf (dump_file, "Div/mod by constant transformation on insn %d\n",
INSN_UID (insn));
e = split_block (BLOCK_FOR_INSN (insn), PREV_INSN (insn));
if (count < wrong_values)
return false;
- if (rtl_dump_file)
- fprintf (rtl_dump_file, "Mod power of 2 transformation on insn %d\n",
+ if (dump_file)
+ fprintf (dump_file, "Mod power of 2 transformation on insn %d\n",
INSN_UID (insn));
e = split_block (BLOCK_FOR_INSN (insn), PREV_INSN (insn));
if (i == 2)
return false;
- if (rtl_dump_file)
- fprintf (rtl_dump_file, "Mod subtract transformation on insn %d\n",
+ if (dump_file)
+ fprintf (dump_file, "Mod subtract transformation on insn %d\n",
INSN_UID (insn));
e = split_block (BLOCK_FOR_INSN (insn), PREV_INSN (insn));