From 6c202d9dc65833e04e35f566c645fde8278c1a24 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Fri, 7 Jun 2019 07:40:20 +0000 Subject: 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 --- gcc/fwprop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/fwprop.c') diff --git a/gcc/fwprop.c b/gcc/fwprop.c index cf2c9de..45703fe 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; -- cgit v1.1