re PR target/77881 (Non-optimal signed comparison on x86_64 since r146817)
authorMichael Matz <matz@suse.de>
Tue, 15 Nov 2016 14:02:28 +0000 (14:02 +0000)
committerMichael Matz <matz@gcc.gnu.org>
Tue, 15 Nov 2016 14:02:28 +0000 (14:02 +0000)
commitb229ab2a712ccd44126bcbcaed2da8b998e7366c
tree6332e06f8a024d08d976fc3a4dcd33711ea2e615
parentaa806c3be702a6bcd72cad5c329024ee68e29e3a
re PR target/77881 (Non-optimal signed comparison on x86_64 since r146817)

PR missed-optimization/77881
* combine.c (simplify_comparison): Remove useless subregs
also inside the loop, not just after it.
(make_compound_operation): Recognize some subregs as being
masking as well.

testsuite/
* gcc.target/i386/pr77881.c: New test.

From-SVN: r242414
gcc/ChangeLog
gcc/combine.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr77881.c [new file with mode: 0644]