mirror of git://gcc.gnu.org/git/gcc.git
Remove the hack for AARCH64_EXTRA_TUNE_ALL.
2015-08-24 Andrew Pinski <apinski@cavium.com>
* config/aarch64/aarch64-tuning-flags.def: Remove all index to
AARCH64_EXTRA_TUNING_OPTION.
* config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index): New enum.
(aarch64_extra_tuning_flags): Base the shifted value on the index instead
of the argument to AARCH64_EXTRA_TUNING_OPTION.
* config/aarch64/aarch64.c: Remove the last argument to
AARCH64_EXTRA_TUNING_OPTION.
From-SVN: r227117
This commit is contained in:
parent
4fe3a2a110
commit
a339a01c96
|
|
@ -1,3 +1,13 @@
|
||||||
|
2015-08-24 Andrew Pinski <apinski@cavium.com>
|
||||||
|
|
||||||
|
* config/aarch64/aarch64-tuning-flags.def: Remove all index to
|
||||||
|
AARCH64_EXTRA_TUNING_OPTION.
|
||||||
|
* config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index): New enum.
|
||||||
|
(aarch64_extra_tuning_flags): Base the shifted value on the index instead
|
||||||
|
of the argument to AARCH64_EXTRA_TUNING_OPTION.
|
||||||
|
* config/aarch64/aarch64.c: Remove the last argument to
|
||||||
|
AARCH64_EXTRA_TUNING_OPTION.
|
||||||
|
|
||||||
2015-08-23 Nathan Sidwell <nathan@acm.org>
|
2015-08-23 Nathan Sidwell <nathan@acm.org>
|
||||||
|
|
||||||
* config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
|
* config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
|
||||||
|
|
|
||||||
|
|
@ -222,21 +222,25 @@ enum aarch64_fusion_pairs
|
||||||
};
|
};
|
||||||
#undef AARCH64_FUSION_PAIR
|
#undef AARCH64_FUSION_PAIR
|
||||||
|
|
||||||
#define AARCH64_EXTRA_TUNING_OPTION(x, name, index) \
|
#define AARCH64_EXTRA_TUNING_OPTION(x, name) \
|
||||||
AARCH64_EXTRA_TUNE_##name = (1 << index),
|
AARCH64_EXTRA_TUNE_##name##_index,
|
||||||
|
/* Supported tuning flags indexes. */
|
||||||
|
enum aarch64_extra_tuning_flags_index
|
||||||
|
{
|
||||||
|
#include "aarch64-tuning-flags.def"
|
||||||
|
AARCH64_EXTRA_TUNE_index_END
|
||||||
|
};
|
||||||
|
#undef AARCH64_EXTRA_TUNING_OPTION
|
||||||
|
|
||||||
|
|
||||||
|
#define AARCH64_EXTRA_TUNING_OPTION(x, name) \
|
||||||
|
AARCH64_EXTRA_TUNE_##name = (1u << AARCH64_EXTRA_TUNE_##name##_index),
|
||||||
/* Supported tuning flags. */
|
/* Supported tuning flags. */
|
||||||
enum aarch64_extra_tuning_flags
|
enum aarch64_extra_tuning_flags
|
||||||
{
|
{
|
||||||
AARCH64_EXTRA_TUNE_NONE = 0,
|
AARCH64_EXTRA_TUNE_NONE = 0,
|
||||||
#include "aarch64-tuning-flags.def"
|
#include "aarch64-tuning-flags.def"
|
||||||
|
AARCH64_EXTRA_TUNE_ALL = (1u << AARCH64_EXTRA_TUNE_index_END) - 1
|
||||||
/* Hacky macro to build the "all" flag mask.
|
|
||||||
Expands to 0 | AARCH64_TUNE_index0 | AARCH64_TUNE_index1 , etc. */
|
|
||||||
#undef AARCH64_EXTRA_TUNING_OPTION
|
|
||||||
#define AARCH64_EXTRA_TUNING_OPTION(x, name, y) \
|
|
||||||
| AARCH64_EXTRA_TUNE_##name
|
|
||||||
AARCH64_EXTRA_TUNE_ALL = 0
|
|
||||||
#include "aarch64-tuning-flags.def"
|
|
||||||
};
|
};
|
||||||
#undef AARCH64_EXTRA_TUNING_OPTION
|
#undef AARCH64_EXTRA_TUNING_OPTION
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,15 +20,13 @@
|
||||||
/* Additional control over certain tuning parameters. Before including
|
/* Additional control over certain tuning parameters. Before including
|
||||||
this file, define a macro:
|
this file, define a macro:
|
||||||
|
|
||||||
AARCH64_EXTRA_TUNING_OPTION (name, internal_name, index_bit)
|
AARCH64_EXTRA_TUNING_OPTION (name, internal_name)
|
||||||
|
|
||||||
Where:
|
Where:
|
||||||
|
|
||||||
NAME is a string giving a friendly name for the tuning flag.
|
NAME is a string giving a friendly name for the tuning flag.
|
||||||
INTERNAL_NAME gives the internal name suitable for appending to
|
INTERNAL_NAME gives the internal name suitable for appending to
|
||||||
AARCH64_TUNE_ to give an enum name.
|
AARCH64_TUNE_ to give an enum name. */
|
||||||
INDEX_BIT is the bit to set in the bitmask of supported tuning
|
|
||||||
flags. */
|
|
||||||
|
|
||||||
AARCH64_EXTRA_TUNING_OPTION ("rename_fma_regs", RENAME_FMA_REGS, 0)
|
AARCH64_EXTRA_TUNING_OPTION ("rename_fma_regs", RENAME_FMA_REGS)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -182,7 +182,7 @@ static const struct aarch64_flag_desc aarch64_fusible_pairs[] =
|
||||||
};
|
};
|
||||||
#undef AARCH64_FUION_PAIR
|
#undef AARCH64_FUION_PAIR
|
||||||
|
|
||||||
#define AARCH64_EXTRA_TUNING_OPTION(name, internal_name, y) \
|
#define AARCH64_EXTRA_TUNING_OPTION(name, internal_name) \
|
||||||
{ name, AARCH64_EXTRA_TUNE_##internal_name },
|
{ name, AARCH64_EXTRA_TUNE_##internal_name },
|
||||||
static const struct aarch64_flag_desc aarch64_tuning_flags[] =
|
static const struct aarch64_flag_desc aarch64_tuning_flags[] =
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue