This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] rtlanal: dead_or_set_regno_p should handle CLOBBER (PR83424)
- From: Jeff Law <law at redhat dot com>
- To: Segher Boessenkool <segher at kernel dot crashing dot org>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 16 Jan 2018 08:32:30 -0700
- Subject: Re: [PATCH] rtlanal: dead_or_set_regno_p should handle CLOBBER (PR83424)
- Authentication-results: sourceware.org; auth=none
- References: <1513458186-60378-1-git-send-email-segher@kernel.crashing.org> <66793457-be01-503c-8f7e-84ada21950af@redhat.com> <20180116134101.GS21977@gate.crashing.org>
On 01/16/2018 06:41 AM, Segher Boessenkool wrote:
> On Mon, Dec 18, 2017 at 12:16:13PM -0700, Jeff Law wrote:
>> On 12/16/2017 02:03 PM, Segher Boessenkool wrote:
>>> In PR83424 combine's move_deaths puts a REG_DEAD not in the wrong place
>>> because dead_or_set_regno_p does not account for CLOBBER insns. This
>>> fixes it.
>>>
>>> Bootstrapped and tested on powerpc64-linux {-m32,-m64} and on x86_64-linux.
>>> Is this okay for trunk?
>>>
>>>
>>> Segher
>>>
>>>
>>> 2017-12-16 Segher Boessenkool <segher@kernel.crashing.org>
>>>
>>> PR rtl-optimization/83424
>>> * rtlanal.c (dead_or_set_regno_p): Handle CLOBBER just like SET.
>>>
>>> gcc/testsuite/
>>> PR rtl-optimization/83424
>>> * gcc.dg/pr83424.c: New testsuite.
>> OK.
>
> Is this okay for backports to 7 and 6, too?
Yes.
jeff