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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Dec 22 08:51:26 2017
New Revision: 255969

URL: https://gcc.gnu.org/viewcvs?rev=255969&root=gcc&view=rev
Log:
        Backported from mainline
        2017-12-21  Jakub Jelinek  <ja...@redhat.com>

        PR tree-optimization/83521
        * tree-ssa-phiopt.c (factor_out_conditional_conversion): Use
        gimple_build_assign without code on result of
        fold_build1 (VIEW_CONVERT_EXPR, ...), as it might not create
        a VIEW_CONVERT_EXPR.

        * gcc.dg/pr83521.c: New test.

Added:
    branches/gcc-7-branch/gcc/testsuite/gcc.dg/pr83521.c
Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/testsuite/ChangeLog
    branches/gcc-7-branch/gcc/tree-ssa-phiopt.c

Reply via email to