https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71016
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Thu Jan 5 21:14:19 2017 New Revision: 244114 URL: https://gcc.gnu.org/viewcvs?rev=244114&root=gcc&view=rev Log: PR tree-optimization/71016 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to factor_out_conditional_conversion. Formatting fix. (factor_out_conditional_conversion): Add cond_stmt argument. If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of cond_stmt and if arg0_def_stmt is not the only stmt in its bb. Formatting fix. * gcc.target/i386/pr71016.c: New test. * gcc.target/aarch64/pr71016.c: New test. * gcc.dg/tree-ssa/pr66726-3.c: New test. Added: trunk/gcc/testsuite/gcc.dg/tree-ssa/pr66726-3.c trunk/gcc/testsuite/gcc.target/aarch64/pr71016.c trunk/gcc/testsuite/gcc.target/i386/pr71016.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-ssa-phiopt.c