diff options
Diffstat (limited to 'gcc/dse.c')
-rw-r--r-- | gcc/dse.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/dse.c b/gcc/dse.c index aaf8d7320c3..89ba0c961a3 100644 --- a/gcc/dse.c +++ b/gcc/dse.c @@ -1832,7 +1832,8 @@ find_shift_sequence (int access_size, byte = subreg_lowpart_offset (read_mode, new_mode); ret = simplify_subreg (read_mode, ret, new_mode, byte); if (ret && CONSTANT_P (ret) - && set_src_cost (ret, speed) <= COSTS_N_INSNS (1)) + && (set_src_cost (ret, read_mode, speed) + <= COSTS_N_INSNS (1))) return ret; } } |