From: Richard Sandiford Date: Fri, 7 Jun 2019 07:40:20 +0000 (+0000) Subject: Fix fwprop call to call to paradoxical_subreg_p X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6c202d9dc65833e04e35f566c645fde8278c1a24;p=gcc.git Fix fwprop call to call to paradoxical_subreg_p "mode" is the mode of "x", not the replacement value. 2019-06-06 Richard Sandiford gcc/ * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p. From-SVN: r272032 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cbbdbc20a6c..add02bbb990 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2019-06-07 Richard Sandiford + + * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p. + 2019-06-07 Martin Liska * doc/invoke.texi: Remove param. diff --git a/gcc/fwprop.c b/gcc/fwprop.c index cf2c9de2d35..45703fe5f01 100644 --- a/gcc/fwprop.c +++ b/gcc/fwprop.c @@ -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;