]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
revert: combine.c (can_change_dest_mode): Reject changes in REGMODE_NATURAL_SIZE.
authorRichard Sandiford <richard.sandiford@linaro.org>
Wed, 1 Nov 2017 17:06:17 +0000 (17:06 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 1 Nov 2017 17:06:17 +0000 (17:06 +0000)
2017-11-01  Richard Sandiford  <richard.sandiford@linaro.org>

gcc/
Revert accidental duplicate:

* combine.c (can_change_dest_mode): Reject changes in
REGMODE_NATURAL_SIZE.

From-SVN: r254316

gcc/ChangeLog
gcc/combine.c

index cc51a722b36cf2a8efce2cca87bdc592ff1e2a49..adf8cf308e9a0b974d9b27fd33c4986fb447fa4d 100644 (file)
@@ -1,3 +1,10 @@
+2017-11-01  Richard Sandiford  <richard.sandiford@linaro.org>
+
+       Revert accidental duplicate:
+
+       * combine.c (can_change_dest_mode): Reject changes in
+       REGMODE_NATURAL_SIZE.
+
 2017-11-01  Segher Boessenkool  <segher@kernel.crashing.org>
 
        PR rtl-optimization/64682
index d5b15cb3caaea17d0843c124c8d7ab9fcd1785c0..968e6871e996b0f448e3f75b9cf7a0ed6d1e3120 100644 (file)
@@ -2478,12 +2478,6 @@ can_change_dest_mode (rtx x, int added_sets, machine_mode mode)
       != REGMODE_NATURAL_SIZE (GET_MODE (x)))
     return false;
 
-  /* Don't change between modes with different underlying register sizes,
-     since this could lead to invalid subregs.  */
-  if (REGMODE_NATURAL_SIZE (mode)
-      != REGMODE_NATURAL_SIZE (GET_MODE (x)))
-    return false;
-
   regno = REGNO (x);
   /* Allow hard registers if the new mode is legal, and occupies no more
      registers than the old mode.  */