From 37a2c475252b26895732fefbbb0050c864ba698d Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Wed, 1 Nov 2017 17:06:17 +0000 Subject: [PATCH] revert: combine.c (can_change_dest_mode): Reject changes in REGMODE_NATURAL_SIZE. 2017-11-01 Richard Sandiford gcc/ Revert accidental duplicate: * combine.c (can_change_dest_mode): Reject changes in REGMODE_NATURAL_SIZE. From-SVN: r254316 --- gcc/ChangeLog | 7 +++++++ gcc/combine.c | 6 ------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cc51a722b36..adf8cf308e9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2017-11-01 Richard Sandiford + + Revert accidental duplicate: + + * combine.c (can_change_dest_mode): Reject changes in + REGMODE_NATURAL_SIZE. + 2017-11-01 Segher Boessenkool PR rtl-optimization/64682 diff --git a/gcc/combine.c b/gcc/combine.c index d5b15cb3caa..968e6871e99 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -2478,12 +2478,6 @@ can_change_dest_mode (rtx x, int added_sets, machine_mode mode) != REGMODE_NATURAL_SIZE (GET_MODE (x))) return false; - /* Don't change between modes with different underlying register sizes, - since this could lead to invalid subregs. */ - if (REGMODE_NATURAL_SIZE (mode) - != REGMODE_NATURAL_SIZE (GET_MODE (x))) - return false; - regno = REGNO (x); /* Allow hard registers if the new mode is legal, and occupies no more registers than the old mode. */ -- 2.30.2