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

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jeff Law <l...@gcc.gnu.org>:

https://gcc.gnu.org/g:0562976d62e095f3a00c799288dee4e5b20114e2

commit r15-3360-g0562976d62e095f3a00c799288dee4e5b20114e2
Author: Jeff Law <j...@ventanamicro.com>
Date:   Sun Sep 1 22:16:04 2024 -0600

    [committed][PR rtl-optimization/116544] Fix test for promoted subregs

    This is a small bug in the ext-dce code's handling of promoted subregs.

    Essentially when we see a promoted subreg we need to make additional bit
groups
    live as various parts of the RTL path know that an extension of a suitably
    promoted subreg can be trivially eliminated.

    When I added support for dealing with this quirk I failed to account for
the
    larger modes properly and it ignored the case when the size of the inner
object
    was > 32 bits.  Opps.

    This does _not_ fix the outstanding x86 issue.  That's caused by something
    completely different and more concerning ;(

    Bootstrapped and regression tested on x86.  Obviously fixes the testcase on
    riscv as well.

    Pushing to the trunk.

            PR rtl-optimization/116544
    gcc/
            * ext-dce.cc (ext_dce_process_uses): Fix thinko in promoted subreg
            handling.

    gcc/testsuite/
            * gcc.dg/torture/pr116544.c: New test.

Reply via email to