summaryrefslogtreecommitdiff
path: root/gcc/dse.c
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@gcc.gnu.org>2017-12-16 14:23:38 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2017-12-16 14:23:38 +0000
commitb4ddce3663ce151423f81c9e2a206df3081d1071 (patch)
tree0932d4f8ba3dd51e383d00346fdcab38cc45d073 /gcc/dse.c
parent7e594332e400b26cd2df4a40980d08ffc7fcfc1a (diff)
Revert accidental commit
From-SVN: r255746
Diffstat (limited to 'gcc/dse.c')
-rw-r--r--gcc/dse.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/dse.c b/gcc/dse.c
index c14eace483e..fbc6b25ac1e 100644
--- a/gcc/dse.c
+++ b/gcc/dse.c
@@ -1642,9 +1642,8 @@ find_shift_sequence (int access_size,
store_mode, byte);
if (ret && CONSTANT_P (ret))
{
- rtx shift_rtx = gen_int_shift_amount (new_mode, shift);
ret = simplify_const_binary_operation (LSHIFTRT, new_mode,
- ret, shift_rtx);
+ ret, GEN_INT (shift));
if (ret && CONSTANT_P (ret))
{
byte = subreg_lowpart_offset (read_mode, new_mode);
@@ -1680,8 +1679,7 @@ find_shift_sequence (int access_size,
of one dsp where the cost of these two was not the same. But
this really is a rare case anyway. */
target = expand_binop (new_mode, lshr_optab, new_reg,
- gen_int_shift_amount (new_mode, shift),
- new_reg, 1, OPTAB_DIRECT);
+ GEN_INT (shift), new_reg, 1, OPTAB_DIRECT);
shift_seq = get_insns ();
end_sequence ();