aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
authorDavid Sherwood <david.sherwood@arm.com>
Wed, 21 Jan 2015 17:53:55 +0000 (17:53 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 21 Jan 2015 17:53:55 +0000 (17:53 +0000)
gcc/
2015-01-21  David Sherwood  <david.sherwood@arm.com>
    Tejas Belagod <Tejas.Belagod@arm.com>

* config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
* config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
* config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
Removed.

Co-Authored-By: Tejas Belagod <tejas.belagod@arm.com>
From-SVN: r219960

gcc/ChangeLog
gcc/config/aarch64/aarch64-protos.h
gcc/config/aarch64/aarch64.c
gcc/config/aarch64/aarch64.h

index 2921413e661760feb840d465f8ab9a62f26d7401..a08d231b72d301930cd27ed9b0e225e20b7cfb55 100644 (file)
@@ -1,3 +1,11 @@
+2015-01-21  David Sherwood  <david.sherwood@arm.com>
+           Tejas Belagod <Tejas.Belagod@arm.com>
+
+       * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
+       * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
+       * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
+       Removed.
+
 2015-01-21  David Sherwood  <david.sherwood@arm.com>
            Tejas Belagod <Tejas.Belagod@arm.com>
 
index 0b3d03525e79a9747dbd1a3350abb4e60db6592b..59c5824f894cf5dafe93a996180056696518feb4 100644 (file)
@@ -182,9 +182,6 @@ struct tune_params
 HOST_WIDE_INT aarch64_initial_elimination_offset (unsigned, unsigned);
 int aarch64_get_condition_code (rtx);
 bool aarch64_bitmask_imm (HOST_WIDE_INT val, machine_mode);
-bool aarch64_cannot_change_mode_class (machine_mode,
-                                      machine_mode,
-                                      enum reg_class);
 enum aarch64_symbol_type
 aarch64_classify_symbolic_expression (rtx, enum aarch64_symbol_context);
 bool aarch64_const_vec_all_same_int_p (rtx, HOST_WIDE_INT);
index e057c590c205874b7022aec0cbeb8f29b173b918..dd49fcd89d8a9bde27446a84ae4668a3a84ed080 100644 (file)
@@ -10175,54 +10175,6 @@ aarch64_vectorize_vec_perm_const_ok (machine_mode vmode,
   return ret;
 }
 
-/* Implement target hook CANNOT_CHANGE_MODE_CLASS.  */
-bool
-aarch64_cannot_change_mode_class (machine_mode from,
-                                 machine_mode to,
-                                 enum reg_class rclass)
-{
-  /* Full-reg subregs are allowed on general regs or any class if they are
-     the same size.  */
-  if (GET_MODE_SIZE (from) == GET_MODE_SIZE (to)
-      || !reg_classes_intersect_p (FP_REGS, rclass))
-    return false;
-
-  /* Limited combinations of subregs are safe on FPREGs.  Particularly,
-     1. Vector Mode to Scalar mode where 1 unit of the vector is accessed.
-     2. Scalar to Scalar for integer modes or same size float modes.
-     3. Vector to Vector modes.
-     4. On little-endian only, Vector-Structure to Vector modes.  */
-  if (GET_MODE_SIZE (from) > GET_MODE_SIZE (to))
-    {
-      if (aarch64_vector_mode_supported_p (from)
-         && GET_MODE_SIZE (GET_MODE_INNER (from)) == GET_MODE_SIZE (to))
-       return false;
-
-      if (GET_MODE_NUNITS (from) == 1
-         && GET_MODE_NUNITS (to) == 1
-         && (GET_MODE_CLASS (from) == MODE_INT
-             || from == to))
-       return false;
-
-      if (aarch64_vector_mode_supported_p (from)
-         && aarch64_vector_mode_supported_p (to))
-       return false;
-
-      /* Within an vector structure straddling multiple vector registers
-        we are in a mixed-endian representation.  As such, we can't
-        easily change modes for BYTES_BIG_ENDIAN.  Otherwise, we can
-        switch between vectors and vector structures cheaply.  */
-      if (!BYTES_BIG_ENDIAN)
-       if ((aarch64_vector_mode_supported_p (from)
-             && aarch64_vect_struct_mode_p (to))
-           || (aarch64_vector_mode_supported_p (to)
-             && aarch64_vect_struct_mode_p (from)))
-         return false;
-    }
-
-  return true;
-}
-
 rtx
 aarch64_reverse_mask (enum machine_mode mode)
 {
index eed86f73f1531126596986b3629d39aa64ac80bf..bf59e40a64459f6daddef47a5f5214adfd92d9b6 100644 (file)
@@ -879,9 +879,6 @@ do {                                                                             \
   extern void  __aarch64_sync_cache_range (void *, void *);    \
   __aarch64_sync_cache_range (beg, end)
 
-#define CANNOT_CHANGE_MODE_CLASS(FROM, TO, CLASS)      \
-  aarch64_cannot_change_mode_class (FROM, TO, CLASS)
-
 #define SHIFT_COUNT_TRUNCATED !TARGET_SIMD
 
 /* Choose appropriate mode for caller saves, so we do the minimum