[RS6000] Don't rely on rs6000_hard_regno_mode_ok being zero
authorAlan Modra <amodra@gmail.com>
Wed, 27 Mar 2019 01:12:35 +0000 (11:42 +1030)
committerAlan Modra <amodra@gcc.gnu.org>
Wed, 27 Mar 2019 01:12:35 +0000 (11:42 +1030)
* config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
assign rs6000_hard_regno_mode_ok_p[m][r].  Formatting.

From-SVN: r269959

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index a298f878bbb36929d6ac221baadf24dec4c81363..f86b2ec7556cc5cc9d44ba68e1460051e3ecb887 100644 (file)
@@ -1,3 +1,8 @@
+2019-03-27  Alan Modra  <amodra@gmail.com>
+
+       * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
+       assign rs6000_hard_regno_mode_ok_p[m][r].  Formatting.
+
 2019-03-26  Andrew Waterman  <andrew@sifive.com>
            Jim Wilson  <jimw@sifive.com>
 
index a7590db013e542c9cb18020a591896fd1e317031..03c91432bff5d184de6f4e3a8bce6624e30e834e 100644 (file)
@@ -3463,13 +3463,13 @@ rs6000_init_hard_regno_mode_ok (bool global_init_p)
   for (r = 0; HARD_REGISTER_NUM_P (r); ++r)
     for (m = 0; m < NUM_MACHINE_MODES; ++m)
       rs6000_hard_regno_nregs[m][r]
-       = rs6000_hard_regno_nregs_internal (r, (machine_mode)m);
+       = rs6000_hard_regno_nregs_internal (r, (machine_mode) m);
 
   /* Precalculate TARGET_HARD_REGNO_MODE_OK.  */
   for (r = 0; HARD_REGISTER_NUM_P (r); ++r)
     for (m = 0; m < NUM_MACHINE_MODES; ++m)
-      if (rs6000_hard_regno_mode_ok_uncached (r, (machine_mode)m))
-       rs6000_hard_regno_mode_ok_p[m][r] = true;
+      rs6000_hard_regno_mode_ok_p[m][r]
+       = rs6000_hard_regno_mode_ok_uncached (r, (machine_mode) m);
 
   /* Precalculate CLASS_MAX_NREGS sizes.  */
   for (c = 0; c < LIM_REG_CLASSES; ++c)