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

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

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

commit r10-7350-ga5a9400a846244d040caa6d1531434eee8fc8ec7
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Tue Mar 24 09:34:58 2020 +0100

    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.

Reply via email to