From 49bb43bef3b724b9c75418c834974e7a5e83f924 Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Tue, 9 Jan 2018 17:27:11 +0100 Subject: [PATCH] re PR rtl-optimization/83628 (performance regression when accessing arrays on alpha) PR target/83628 * combine.c (force_int_to_mode) : Use mode instead of op_mode in the force_to_mode call. From-SVN: r256387 --- gcc/ChangeLog | 6 ++++++ gcc/combine.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5c7b04604b4..a7054e3e9e6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-01-09 Uros Bizjak + + PR target/83628 + * combine.c (force_int_to_mode) : Use mode instead of + op_mode in the force_to_mode call. + 2018-01-09 Richard Sandiford * config/aarch64/aarch64.c (aarch64_evpc_trn): Use d.perm.series_p diff --git a/gcc/combine.c b/gcc/combine.c index 3a42de53455..6adc0a7d6f8 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -8908,7 +8908,7 @@ force_int_to_mode (rtx x, scalar_int_mode mode, scalar_int_mode xmode, mask = fuller_mask; op0 = gen_lowpart_or_truncate (op_mode, - force_to_mode (XEXP (x, 0), op_mode, + force_to_mode (XEXP (x, 0), mode, mask, next_select)); if (op_mode != xmode || op0 != XEXP (x, 0)) -- 2.30.2