re PR rtl-optimization/69592 (Compile-time and memory-use hog in combine)
authorJakub Jelinek <jakub@redhat.com>
Mon, 1 Feb 2016 22:39:31 +0000 (23:39 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 1 Feb 2016 22:39:31 +0000 (23:39 +0100)
commitd0268b37f87359ebf5d6f8bd95fe9829b520749a
tree6d20c4dc8d9379e506a9c5f4d19e1a1aa2108f84
parente1b81f2ba000a61a3d845f0d3bb038b62d43673f
re PR rtl-optimization/69592 (Compile-time and memory-use hog in combine)

PR rtl-optimization/69592
* rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
(cached_nonzero_bits): Use it instead of ARITHMETIC_P.
(num_sign_bit_copies_binary_arith_p): New inline function.
(cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.

* gcc.dg/pr69592.c: New test.

From-SVN: r233059
gcc/ChangeLog
gcc/rtlanal.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr69592.c [new file with mode: 0644]