+Wed Mar 25 23:53:11 1998 Jeffrey A Law (law@cygnus.com)
+
+ * pa.c (pa_adjust_cost): Avoid redundant calls to get_attr_type.
+
Wed Mar 25 13:40:48 1998 Jim Wilson <wilson@cygnus.com>
* c-common.c (check_format_info): Initialize type, is_type. New local
rtx dep_insn;
int cost;
{
+ enum attr_type attr_type;
+
if (! recog_memoized (insn))
return 0;
+ attr_type = get_attr_type (insn);
+
if (REG_NOTE_KIND (link) == 0)
{
/* Data dependency; DEP_INSN writes a register that INSN reads some
cycles later. */
- if (get_attr_type (insn) == TYPE_FPSTORE)
+ if (attr_type == TYPE_FPSTORE)
{
rtx pat = PATTERN (insn);
rtx dep_pat = PATTERN (dep_insn);
/* Anti dependency; DEP_INSN reads a register that INSN writes some
cycles later. */
- if (get_attr_type (insn) == TYPE_FPLOAD)
+ if (attr_type == TYPE_FPLOAD)
{
rtx pat = PATTERN (insn);
rtx dep_pat = PATTERN (dep_insn);
}
}
}
- else if (get_attr_type (insn) == TYPE_FPALU)
+ else if (attr_type == TYPE_FPALU)
{
rtx pat = PATTERN (insn);
rtx dep_pat = PATTERN (dep_insn);
{
/* Output dependency; DEP_INSN writes a register that INSN writes some
cycles later. */
- if (get_attr_type (insn) == TYPE_FPLOAD)
+ if (attr_type == TYPE_FPLOAD)
{
rtx pat = PATTERN (insn);
rtx dep_pat = PATTERN (dep_insn);
}
}
}
- else if (get_attr_type (insn) == TYPE_FPALU)
+ else if (attr_type == TYPE_FPALU)
{
rtx pat = PATTERN (insn);
rtx dep_pat = PATTERN (dep_insn);