https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98365
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by hongtao Liu <liuho...@gcc.gnu.org>: https://gcc.gnu.org/g:28daadc98094501175c9dfe4a985871fa6aa4f94 commit r12-1138-g28daadc98094501175c9dfe4a985871fa6aa4f94 Author: liuhongt <hongtao....@intel.com> Date: Wed Jan 6 16:33:27 2021 +0800 Extend is_cond_scalar_reduction to handle nop_expr after/before scalar reduction.[PR98365] gcc/ChangeLog: PR tree-optimization/98365 * tree-if-conv.c (strip_nop_cond_scalar_reduction): New function. (is_cond_scalar_reduction): Handle nop_expr in cond scalar reduction. (convert_scalar_cond_reduction): Ditto. (predicate_scalar_phi): Ditto. gcc/testsuite/ChangeLog: PR tree-optimization/98365 * gcc.target/i386/pr98365.c: New test.