]> gcc.gnu.org Git - gcc.git/commitdiff
Fix fwprop call to call to paradoxical_subreg_p
authorRichard Sandiford <richard.sandiford@arm.com>
Fri, 7 Jun 2019 07:40:20 +0000 (07:40 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Fri, 7 Jun 2019 07:40:20 +0000 (07:40 +0000)
"mode" is the mode of "x", not the replacement value.

2019-06-06  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
* fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.

From-SVN: r272032

gcc/ChangeLog
gcc/fwprop.c

index cbbdbc20a6c60d465351f2db7e4a01fcfd53504a..add02bbb9909eb40e1d06e071a500df8fa52d296 100644 (file)
@@ -1,3 +1,7 @@
+2019-06-07  Richard Sandiford  <richard.sandiford@arm.com>
+
+       * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
+
 2019-06-07  Martin Liska  <mliska@suse.cz>
 
        * doc/invoke.texi: Remove param.
index cf2c9de2d3580dc25a85668930d5248f8a24b3c7..45703fe5f01b6a644d2da678a44674391fc76ae4 100644 (file)
@@ -680,7 +680,7 @@ propagate_rtx (rtx x, machine_mode mode, rtx old_rtx, rtx new_rtx,
       || CONSTANT_P (new_rtx)
       || (GET_CODE (new_rtx) == SUBREG
          && REG_P (SUBREG_REG (new_rtx))
-         && !paradoxical_subreg_p (mode, GET_MODE (SUBREG_REG (new_rtx)))))
+         && !paradoxical_subreg_p (new_rtx)))
     flags |= PR_CAN_APPEAR;
   if (!varying_mem_p (new_rtx))
     flags |= PR_HANDLE_MEM;
This page took 0.0642 seconds and 5 git commands to generate.