diff options
author | bje <bje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-27 21:02:16 +0000 |
---|---|---|
committer | bje <bje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-27 21:02:16 +0000 |
commit | 152a1c0a111d58a56bf2c949571b1b1f1c9b3a92 (patch) | |
tree | 13fd3cfcb73f6650e4dab5d9115c569183d1183a /gcc/params.h | |
parent | 695fe0b95a75289c2bef47032d3ebcd3e303a75e (diff) | |
download | gcc-152a1c0a111d58a56bf2c949571b1b1f1c9b3a92.tar.gz |
* params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): New.
(PARAM_SRA_FIELD_STRUCTURE_RATIO): Likewise.
* params.h (SRA_MAX_STRUCTURE_SIZE): New.
(SRA_FIELD_STRUCTURE_RATIO): Likewise.
* tree-sra.c: Include "params.h".
(decide_block_copy): Use new parameters.
* doc/invoke.texi (Optimize Options): Document new SRA pass
parameters sra-max-structure-size and sra-field-structure-ratio.
[testsuite]
* gcc.dg/tree-ssa/sra-1.c: Pass --param sra-max-structure-size.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89711 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/params.h')
-rw-r--r-- | gcc/params.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/params.h b/gcc/params.h index b17625ea86f..0ebb9729be7 100644 --- a/gcc/params.h +++ b/gcc/params.h @@ -82,6 +82,10 @@ typedef enum compiler_param (compiler_params[(int) ENUM].value) /* Macros for the various parameters. */ +#define SRA_MAX_STRUCTURE_SIZE \ + PARAM_VALUE (PARAM_SRA_MAX_STRUCTURE_SIZE) +#define SRA_FIELD_STRUCTURE_RATIO \ + PARAM_VALUE (PARAM_SRA_FIELD_STRUCTURE_RATIO) #define MAX_INLINE_INSNS_SINGLE \ PARAM_VALUE (PARAM_MAX_INLINE_INSNS_SINGLE) #define MAX_INLINE_INSNS \ |