https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66949

--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Wed Dec  9 14:58:22 2015
New Revision: 231457

URL: https://gcc.gnu.org/viewcvs?rev=231457&root=gcc&view=rev
Log:
        PR tree-optimization/66949
        * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Don't call 
        single_non_singleton_phi_for_edges to get the PHI from
        factor_out_conditional_conversion.  Use NULL_TREE instead of NULL.
        (factor_out_conditional_conversion): Adjust declaration.  Make it
        return the newly-created PHI.

        * gcc.dg/torture/pr66949-1.c: New test.
        * gcc.dg/torture/pr66949-2.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/torture/pr66949-1.c
    trunk/gcc/testsuite/gcc.dg/torture/pr66949-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-phiopt.c

Reply via email to