From 5a5e4c2caa515d44a6fa6b56198166541eefa5d2 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sat, 23 Jan 1993 07:14:52 -0500 Subject: [PATCH] (ADJUST_COST): Add new definition. From-SVN: r3306 --- gcc/config/rs6000/rs6000.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h index 1c239f5b199..e0f7fddb64a 100644 --- a/gcc/config/rs6000/rs6000.h +++ b/gcc/config/rs6000/rs6000.h @@ -353,6 +353,17 @@ extern int target_flags; #define BRANCH_COST 3 +/* A C statement (sans semicolon) to update the integer variable COST + based on the relationship between INSN that is dependent on + DEP_INSN through the dependence LINK. The default is to make no + adjustment to COST. On the RS/6000, ignore the cost of anti- and + output-dependencies. In fact, output dependencies on the CR do have + a cost, but it is probably not worthwhile to track it. */ + +#define ADJUST_COST(INSN,LINK,DEP_INSN,COST) \ + if (REG_NOTE_KIND (LINK) != 0) \ + (COST) = 0; /* Anti or output dependence. */ + /* Specify the registers used for certain standard purposes. The values of these macros are register numbers. */ -- 2.30.2