* config/aarch64/aarch64.c: Delete inclusion of
cortex-a57-fma-steering.h.
(aarch64_override_options): Delete call
to aarch64_register_fma_steering.
* config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
* config/aarch64/cortex-a57-fma-steering.h: Delete.
* config/aarch64/aarch64-passes.def: New file.
* config/aarch64/cortex-a57-fma-steering.c
(aarch64_register_fma_steering): Delete definition.
(make_pass_fma_steering): Remove static qualifier.
* config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
(cortex-a57-fma-steering.o): Remove dependency on
cortex-a57-fma-steering.h.
(backported
e8ebfb45f2e320c6a1e810c9d7ca1c40e2b26e6b)
Change-Id: I608f6d880296473c76c203e387c96791be9e50f2
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@241248
138bc75d-0d04-0410-961f-
82ee72b054a4
+2016-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
+
+ * config/aarch64/aarch64.c: Delete inclusion of
+ cortex-a57-fma-steering.h.
+ (aarch64_override_options): Delete call
+ to aarch64_register_fma_steering.
+ * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
+ * config/aarch64/cortex-a57-fma-steering.h: Delete.
+ * config/aarch64/aarch64-passes.def: New file.
+ * config/aarch64/cortex-a57-fma-steering.c
+ (aarch64_register_fma_steering): Delete definition.
+ (make_pass_fma_steering): Remove static qualifier.
+ * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
+ (cortex-a57-fma-steering.o): Remove dependency on
+ cortex-a57-fma-steering.h.
+
2017-07-06 Vyacheslav Barinov <v.barinov@samsung.com>
* tree.def: Add STATEMENT_LIST_END tree code.
-/* This file contains declarations for the FMA steering optimization
- pass for Cortex-A57.
- Copyright (C) 2015-2016 Free Software Foundation, Inc.
+/* AArch64-specific passes declarations.
+ Copyright (C) 2016 Free Software Foundation, Inc.
Contributed by ARM Ltd.
This file is part of GCC.
along with GCC; see the file COPYING3. If not see
<http://www.gnu.org/licenses/>. */
-void aarch64_register_fma_steering (void);
+INSERT_PASS_AFTER (pass_regrename, 1, pass_fma_steering);
std::string aarch64_get_extension_string_for_isa_flags (unsigned long,
unsigned long);
+rtl_opt_pass *make_pass_fma_steering (gcc::context *ctxt);
+
#endif /* GCC_AARCH64_PROTOS_H */
#include "rtl-iter.h"
#include "tm-constrs.h"
#include "sched-int.h"
-#include "cortex-a57-fma-steering.h"
#include "target-globals.h"
#include "common/common-target.h"
while processing functions with potential target attributes. */
target_option_default_node = target_option_current_node
= build_target_option_node (&global_options);
-
- aarch64_register_fma_steering ();
-
}
/* Implement targetm.override_options_after_change. */
#include "context.h"
#include "tree-pass.h"
#include "regrename.h"
-#include "cortex-a57-fma-steering.h"
#include "aarch64-protos.h"
/* For better performance, the destination of FMADD/FMSUB instructions should
/* Create a new fma steering pass instance. */
-static rtl_opt_pass *
+rtl_opt_pass *
make_pass_fma_steering (gcc::context *ctxt)
{
return new pass_fma_steering (ctxt);
}
-
-/* Register the FMA steering pass to the pass manager. */
-
-void
-aarch64_register_fma_steering ()
-{
- opt_pass *pass_fma_steering = make_pass_fma_steering (g);
-
- struct register_pass_info fma_steering_info
- = { pass_fma_steering, "rnreg", 1, PASS_POS_INSERT_AFTER };
-
- register_pass (&fma_steering_info);
-}
$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
$(srcdir)/config/aarch64/aarch64-c.c
+PASSES_EXTRA += $(srcdir)/config/aarch64/aarch64-passes.def
+
cortex-a57-fma-steering.o: $(srcdir)/config/aarch64/cortex-a57-fma-steering.c \
$(CONFIG_H) $(SYSTEM_H) $(TM_H) $(REGS_H) insn-config.h $(RTL_BASE_H) \
dominance.h cfg.h cfganal.h $(BASIC_BLOCK_H) $(INSN_ATTR_H) $(RECOG_H) \
output.h hash-map.h $(DF_H) $(OBSTACK_H) $(TARGET_H) $(RTL_H) \
$(CONTEXT_H) $(TREE_PASS_H) regrename.h \
- $(srcdir)/config/aarch64/cortex-a57-fma-steering.h \
$(srcdir)/config/aarch64/aarch64-protos.h
$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
$(srcdir)/config/aarch64/cortex-a57-fma-steering.c