Fix fwprop call to call to paradoxical_subreg_p

"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
This commit is contained in:
Richard Sandiford 2019-06-07 07:40:20 +00:00 committed by Richard Sandiford
parent e37333bad7
commit 6c202d9dc6
2 changed files with 5 additions and 1 deletions

View 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.

View 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;