https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77881
--- Comment #6 from Michael Matz <matz at gcc dot gnu.org> --- Author: matz Date: Tue Nov 15 14:02:28 2016 New Revision: 242414 URL: https://gcc.gnu.org/viewcvs?rev=242414&root=gcc&view=rev Log: 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. Added: trunk/gcc/testsuite/gcc.target/i386/pr77881.c Modified: trunk/gcc/ChangeLog trunk/gcc/combine.c trunk/gcc/testsuite/ChangeLog