re PR rtl-optimization/83628 (performance regression when accessing arrays on alpha)
authorUros Bizjak <ubizjak@gmail.com>
Tue, 9 Jan 2018 16:27:11 +0000 (17:27 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Tue, 9 Jan 2018 16:27:11 +0000 (17:27 +0100)
PR target/83628
* combine.c (force_int_to_mode) <case ASHIFT>: Use mode instead of
op_mode in the force_to_mode call.

From-SVN: r256387

gcc/ChangeLog
gcc/combine.c

index 5c7b04604b41544cdadd5061ac268110ad7243dc..a7054e3e9e659c7a084b1ceedef58e133bacbf51 100644 (file)
@@ -1,3 +1,9 @@
+2018-01-09  Uros Bizjak  <ubizjak@gmail.com>
+
+       PR target/83628
+       * combine.c (force_int_to_mode) <case ASHIFT>: Use mode instead of
+       op_mode in the force_to_mode call.
+
 2018-01-09  Richard Sandiford  <richard.sandiford@linaro.org>
 
        * config/aarch64/aarch64.c (aarch64_evpc_trn): Use d.perm.series_p
index 3a42de53455c598f92e544588e96fdd459ca5205..6adc0a7d6f8510ff501a949def3560b3115830eb 100644 (file)
@@ -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))