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

--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-8 branch has been updated by Jakub Jelinek
<ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:c9790fa67882765eb293774e629cd071de857952

commit r8-10473-gc9790fa67882765eb293774e629cd071de857952
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Tue Apr 7 20:57:37 2020 +0200

    if-conv: Fix -fcompare-debug bugs in ifcvt_local_dce [PR94283]

    The following testcase shows -fcompare-debug bugs in ifcvt_local_dce,
    where the decisions what statements are needed is based also on debug stmt
    operands, which is wrong.
    So, this patch makes sure to never add debug stmt to the worklist, or never
    add an assign to worklist just because it is used in a debug stmt in
another
    bb.

    2020-03-24  Jakub Jelinek  <ja...@redhat.com>

            PR debug/94283
            * tree-if-conv.c (ifcvt_local_dce): For gimple debug stmts, just
set
            GF_PLF_2, but don't add them to worklist.  Don't add an assigment
to
            worklist or set GF_PLF_2 just because it is used in a debug stmt in
            another bb.  Formatting improvements.

            * gcc.target/i386/pr94283.c: New test.

    (cherry picked from commit 4dcfd4e56b0d22af12750372f3e0b49249b1d473)

Reply via email to