diff options
author | Ralph Loader <suckfish@ihug.co.nz> | 2008-11-10 10:08:15 +0100 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2008-11-10 10:08:15 +0100 |
commit | ff596cd202305b7d7c4f4511fdd505a01c6a5ece (patch) | |
tree | f53c161297245fe4c06c693cc1f4ccf690cedb88 /gcc/rtlanal.c | |
parent | 75223c17538213f86175b988a1b876fdd735d86c (diff) | |
download | gcc-ff596cd202305b7d7c4f4511fdd505a01c6a5ece.zip gcc-ff596cd202305b7d7c4f4511fdd505a01c6a5ece.tar.gz gcc-ff596cd202305b7d7c4f4511fdd505a01c6a5ece.tar.bz2 |
re PR middle-end/37807 (Exponential compile time with MMX builtins.)
PR middle-end/37807
PR middle-end/37809
* combine.c (force_to_mode): Do not process vector types.
* rtlanal.c (nonzero_bits1): Do not process vector types.
(num_sign_bit_copies1): Likewise.
testsuite/ChangeLog
PR middle-end/37807
PR middle-end/37809
* gcc/testsuite/gcc.target/i386/mmx-8.c: New test.
From-SVN: r141732
Diffstat (limited to 'gcc/rtlanal.c')
-rw-r--r-- | gcc/rtlanal.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index b2038aa..5d9df2c 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -3681,8 +3681,9 @@ nonzero_bits1 (const_rtx x, enum machine_mode mode, const_rtx known_x, enum rtx_code code; unsigned int mode_width = GET_MODE_BITSIZE (mode); - /* For floating-point values, assume all bits are needed. */ - if (FLOAT_MODE_P (GET_MODE (x)) || FLOAT_MODE_P (mode)) + /* For floating-point and vector values, assume all bits are needed. */ + if (FLOAT_MODE_P (GET_MODE (x)) || FLOAT_MODE_P (mode) + || VECTOR_MODE_P (GET_MODE (x)) || VECTOR_MODE_P (mode)) return nonzero; /* If X is wider than MODE, use its mode instead. */ @@ -4195,7 +4196,8 @@ num_sign_bit_copies1 (const_rtx x, enum machine_mode mode, const_rtx known_x, if (mode == VOIDmode) mode = GET_MODE (x); - if (mode == VOIDmode || FLOAT_MODE_P (mode) || FLOAT_MODE_P (GET_MODE (x))) + if (mode == VOIDmode || FLOAT_MODE_P (mode) || FLOAT_MODE_P (GET_MODE (x)) + || VECTOR_MODE_P (GET_MODE (x)) || VECTOR_MODE_P (mode)) return 1; /* For a smaller object, just ignore the high bits. */ |