diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2018-02-16 08:20:32 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2018-02-16 08:20:32 +0000 |
commit | c9b34e397c61aa6aec556189bfeac329dee052a6 (patch) | |
tree | 89a9f76f79e45ff479ad5d5e758108de3c5f95b4 /gcc | |
parent | 4cf55739fd30044f489c728aaacd7cae69adef59 (diff) | |
download | gcc-c9b34e397c61aa6aec556189bfeac329dee052a6.zip gcc-c9b34e397c61aa6aec556189bfeac329dee052a6.tar.gz gcc-c9b34e397c61aa6aec556189bfeac329dee052a6.tar.bz2 |
re PR rtl-optimization/81443 (build/genrecog.o: virtual memory exhausted: Cannot allocate memory)
PR rtl-optimization/81443
* rtlanal.c (num_sign_bit_copies1) <SUBREG>: Do not propagate results
from inner REGs to paradoxical SUBREGs.
From-SVN: r257724
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/rtlanal.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f97986b..16c9d9b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-02-16 Eric Botcazou <ebotcazou@adacore.com> + + PR rtl-optimization/81443 + * rtlanal.c (num_sign_bit_copies1) <SUBREG>: Do not propagate results + from inner REGs to paradoxical SUBREGs. + 2018-02-16 Richard Biener <rguenther@suse.de> PR tree-optimization/84399 diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index 89d586b..ac3662d 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -5101,7 +5101,7 @@ num_sign_bit_copies1 (const_rtx x, scalar_int_mode mode, const_rtx known_x, if (WORD_REGISTER_OPERATIONS && load_extend_op (inner_mode) == SIGN_EXTEND && paradoxical_subreg_p (x) - && (MEM_P (SUBREG_REG (x)) || REG_P (SUBREG_REG (x)))) + && MEM_P (SUBREG_REG (x))) return cached_num_sign_bit_copies (SUBREG_REG (x), mode, known_x, known_mode, known_ret); } |