From: Bin Cheng Date: Wed, 3 May 2017 10:10:43 +0000 (+0000) Subject: Revert r247509 2017-05-02 Bin Cheng X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0ec5af39bde53da8ce957349e3dd574c7d30a8a0;p=gcc.git Revert r247509 2017-05-02 Bin Cheng Revert r247509 2017-05-02 Bin Cheng * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes. From-SVN: r247541 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 847ba314d1f..ce973cb0643 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-05-03 Bin Cheng + + Revert r247509 + 2017-05-02 Bin Cheng + * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes. + 2017-05-03 Richard Sandiford * tree-data-ref.h (SUB_CONFLICTS_IN_A): Wrap SUB argument in brackets. diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index f18245fb557..321363f9746 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -4164,14 +4164,6 @@ rtx_cost (rtx x, machine_mode mode, enum rtx_code outer_code, return COSTS_N_INSNS (2 + factor); break; - case TRUNCATE: - /* If we can tie these modes, make this cheap. */ - if (MODES_TIEABLE_P (mode, GET_MODE (SUBREG_REG (x)))) - { - total = 0; - break; - } - /* FALLTHRU */ default: if (targetm.rtx_costs (x, mode, outer_code, opno, &total, speed)) return total;