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

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

https://gcc.gnu.org/g:2bff91f3b4e6f697823a261222186f4b5b052e86

commit r12-5851-g2bff91f3b4e6f697823a261222186f4b5b052e86
Author: Alexandre Oliva <ol...@adacore.com>
Date:   Wed Dec 8 23:37:09 2021 -0300

    [PR103024,PR103530] support throwing compares and non-boolean types

    This patch adjusts the harden-compares pass to cope with compares that
    end basic blocks, and to accept non-boolean integral types whose
    conversion to boolean may have been discarded.


    for  gcc/ChangeLog

            PR tree-optimization/103024
            PR middle-end/103530
            * gimple-harden-conditionals.cc (non_eh_succ_edge): New.
            (pass_harden_compares::execute): Accept 1-bit integral types,
            and cope with throwing compares.

    for  gcc/testsuite/ChangeLog

            PR tree-optimization/103024
            PR middle-end/103530
            * g++.dg/pr103024.C: New.
            * g++.dg/pr103530.C: New.

Reply via email to