diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1993-01-23 07:14:52 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1993-01-23 07:14:52 -0500 |
commit | 5a5e4c2caa515d44a6fa6b56198166541eefa5d2 (patch) | |
tree | 80a21be22830717e27f7d2a96a84083f65c78ed6 | |
parent | 1ed6fbfce4b3bb38c0d0989225da22723119746d (diff) | |
download | gcc-5a5e4c2caa515d44a6fa6b56198166541eefa5d2.zip gcc-5a5e4c2caa515d44a6fa6b56198166541eefa5d2.tar.gz gcc-5a5e4c2caa515d44a6fa6b56198166541eefa5d2.tar.bz2 |
(ADJUST_COST): Add new definition.
From-SVN: r3306
-rw-r--r-- | gcc/config/rs6000/rs6000.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h index 1c239f5..e0f7fdd 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. */ |