[AArch64] Always register fma_steering pass but gate it on the target option instead
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Thu, 4 Jun 2015 08:29:31 +0000 (08:29 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Thu, 4 Jun 2015 08:29:31 +0000 (08:29 +0000)
* config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
register fma steering pass.
* config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
AARCH64_TUNE_FMA_STEERING.

From-SVN: r224116

gcc/ChangeLog
gcc/config/aarch64/aarch64.c
gcc/config/aarch64/cortex-a57-fma-steering.c

index 948abe5164348cc73270b7e15b4f6238b188fecf..3cf20643acb404683e37e2df4ac4e76a0d226192 100644 (file)
@@ -1,3 +1,10 @@
+2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
+
+       * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
+       register fma steering pass.
+       * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
+       AARCH64_TUNE_FMA_STEERING.
+
 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
 
        * tree.c (verify_type_variant): Verify that type and variant is
index 968a6b606fced6f46b7b91fffeec841817f9981d..bbb044cc9bf81594012f808775c2f1aabf605081 100644 (file)
@@ -7207,8 +7207,7 @@ aarch64_override_options (void)
 #endif
     }
 
-  if (AARCH64_TUNE_FMA_STEERING)
-    aarch64_register_fma_steering ();
+  aarch64_register_fma_steering ();
 
   aarch64_override_options_after_change ();
 }
index 3d7557ac2b4d3f61e05a45714aaad3117a63ee5a..5228b57199d0fa70e2d2714f1409cac0cf44397c 100644 (file)
@@ -1053,7 +1053,7 @@ public:
   /* opt_pass methods: */
   virtual bool gate (function *)
     {
-      return optimize >= 2;
+      return AARCH64_TUNE_FMA_STEERING && optimize >= 2;
     }
 
   virtual unsigned int execute (function *)