From: Jakub Jelinek <jakub@redhat.com>
To: Jeff Law <law@redhat.com>
Cc: Alexandre Oliva <aoliva@redhat.com>, GCC <gcc@gcc.gnu.org>
Subject: Re: VTA/debugging vs reload-v2
Date: Tue, 06 Apr 2010 06:36:00 -0000 [thread overview]
Message-ID: <20100406063558.GL3601@sunsite.ms.mff.cuni.cz> (raw)
In-Reply-To: <4BBA6FCB.10302@redhat.com>
On Mon, Apr 05, 2010 at 05:18:35PM -0600, Jeff Law wrote:
>> 2. When renaming references from P to P' in a region, do take debug
>> insns in the region into account, renaming references in debug insns as
>> you would in any other insn.
>>
> OK. So presumably the 2nd argument in a VAR_LOCATION can be any rtl
> expression? Meaning I have to parse it looking for things that need
> changing? Right?
Yes, it can be arbitrary valid RTL (validate_change/verify_changes allow
any changes to DEBUG_INSNs). The problematic stuff is mainly when some RTL
with non-VOIDmode (REG, MEM etc.) needs to be replaced with a VOIDmode
constant - in that case simplify_replace_{,fn_}rtx needs to be used to
change the invalid RTL into valid. We don't want say
(zero_extend:DI (const_int 6)) or (subreg:QI (const_int 12345678) 4) etc.
staying around in the DEBUG_INSNs. But I guess for reload2 you'll be
changing just REGs and MEMs to other REGs and MEMs - in that case
just a replacement through say for_each_rtx is possible too.
Jakub
next prev parent reply other threads:[~2010-04-06 6:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-05 16:37 Jeff Law
2010-04-05 20:33 ` Alexandre Oliva
2010-04-05 23:18 ` Jeff Law
2010-04-06 6:36 ` Jakub Jelinek [this message]
2010-04-06 15:23 ` Jeff Law
2010-04-06 15:31 ` Jakub Jelinek
2010-04-07 8:32 ` Alexandre Oliva
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100406063558.GL3601@sunsite.ms.mff.cuni.cz \
--to=jakub@redhat.com \
--cc=aoliva@redhat.com \
--cc=gcc@gcc.gnu.org \
--cc=law@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).