diff options
Diffstat (limited to 'gcc/config/i386/i386.h')
-rw-r--r-- | gcc/config/i386/i386.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h index f998fdb..588b669 100644 --- a/gcc/config/i386/i386.h +++ b/gcc/config/i386/i386.h @@ -2518,6 +2518,12 @@ enum ix86_builtins #define MOVE_RATIO (optimize_size ? 3 : ix86_cost->move_ratio) +/* If a clear memory operation would take CLEAR_RATIO or more simple + move-instruction sequences, we will do a clrmem or libcall instead. */ + +#define CLEAR_RATIO (optimize_size ? 2 \ + : ix86_cost->move_ratio > 6 ? 6 : ix86_cost->move_ratio) + /* Define if shifts truncate the shift count which implies one can omit a sign-extension or zero-extension of a shift count. */ |