aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtlanal.c
diff options
context:
space:
mode:
authorBin Cheng <bin.cheng@arm.com>2017-05-03 10:10:43 +0000
committerBin Cheng <amker@gcc.gnu.org>2017-05-03 10:10:43 +0000
commit0ec5af39bde53da8ce957349e3dd574c7d30a8a0 (patch)
treeacddf2ecca7d6e404de5d5606f9948f97ca11271 /gcc/rtlanal.c
parent45d9341420accb24e2ffdd64fa47d91e86d24122 (diff)
downloadgcc-0ec5af39bde53da8ce957349e3dd574c7d30a8a0.zip
gcc-0ec5af39bde53da8ce957349e3dd574c7d30a8a0.tar.gz
gcc-0ec5af39bde53da8ce957349e3dd574c7d30a8a0.tar.bz2
Revert r247509 2017-05-02 Bin Cheng <bin.cheng@arm.com>
Revert r247509 2017-05-02 Bin Cheng <bin.cheng@arm.com> * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes. From-SVN: r247541
Diffstat (limited to 'gcc/rtlanal.c')
-rw-r--r--gcc/rtlanal.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c
index f18245f..321363f 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;