diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2012-10-31 08:01:14 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2012-10-31 08:01:14 +0000 |
commit | 8e2326a23bb18caa982475742a6a19c8a26fbf36 (patch) | |
tree | 6b84c73b938d2794ffb1a08967b6cedf2bdb308c /gcc | |
parent | 17a73ba04992fcbd31b572c7492699cff0248995 (diff) | |
download | gcc-8e2326a23bb18caa982475742a6a19c8a26fbf36.zip gcc-8e2326a23bb18caa982475742a6a19c8a26fbf36.tar.gz gcc-8e2326a23bb18caa982475742a6a19c8a26fbf36.tar.bz2 |
combine.c (make_extraction): Remove dead wanted_inner_mode- and pos_rtx-related code.
gcc/
* combine.c (make_extraction): Remove dead wanted_inner_mode-
and pos_rtx-related code.
From-SVN: r193025
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/combine.c | 15 |
2 files changed, 5 insertions, 15 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9f4f4ce..5b6fd01 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2012-10-31 Richard Sandiford <rdsandiford@googlemail.com> + * combine.c (make_extraction): Remove dead wanted_inner_mode- + and pos_rtx-related code. + +2012-10-31 Richard Sandiford <rdsandiford@googlemail.com> + * expmed.c (store_bit_field_1): Move generation of MEM insvs to the MEM_P block. (extract_bit_field_1): Likewise extvs and extzvs. diff --git a/gcc/combine.c b/gcc/combine.c index bf06d4c..e9d0a45 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -7211,10 +7211,6 @@ make_extraction (enum machine_mode mode, rtx inner, HOST_WIDE_INT pos, && GET_MODE_SIZE (extraction_mode) < GET_MODE_SIZE (mode)) extraction_mode = mode; - if (pos_rtx && GET_MODE (pos_rtx) != VOIDmode - && GET_MODE_SIZE (pos_mode) < GET_MODE_SIZE (GET_MODE (pos_rtx))) - pos_mode = GET_MODE (pos_rtx); - /* If this is not from memory, the desired mode is the preferred mode for an extraction pattern's first input operand, or word_mode if there is none. */ @@ -7231,14 +7227,6 @@ make_extraction (enum machine_mode mode, rtx inner, HOST_WIDE_INT pos, wanted_inner_mode = GET_MODE_WIDER_MODE (wanted_inner_mode); gcc_assert (wanted_inner_mode != VOIDmode); } - - /* If we have to change the mode of memory and cannot, the desired mode - is EXTRACTION_MODE. */ - if (inner_mode != wanted_inner_mode - && (mode_dependent_address_p (XEXP (inner, 0), MEM_ADDR_SPACE (inner)) - || MEM_VOLATILE_P (inner) - || pos_rtx)) - wanted_inner_mode = extraction_mode; } orig_pos = pos; @@ -7359,9 +7347,6 @@ make_extraction (enum machine_mode mode, rtx inner, HOST_WIDE_INT pos, } pos_rtx = temp; } - else if (pos_rtx != 0 - && GET_MODE_SIZE (pos_mode) < GET_MODE_SIZE (GET_MODE (pos_rtx))) - pos_rtx = gen_lowpart (pos_mode, pos_rtx); /* Make POS_RTX unless we already have it and it is correct. If we don't have a POS_RTX but we do have an ORIG_POS_RTX, the latter must |