This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How can I determine a register is referred through MEM at split2 stage?
- From: Ian Lance Taylor <iant at google dot com>
- To: "Guo\, Xuepeng" <xuepeng dot guo at intel dot com>
- Cc: "gcc\ at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>, "Lu\, Hongjiu" <hongjiu dot lu at intel dot com>, "Ye\, Joey" <joey dot ye at intel dot com>, "Lin\, Weiliang" <weiliang dot lin at intel dot com>
- Date: Tue, 16 Dec 2008 23:08:16 -0800
- Subject: Re: How can I determine a register is referred through MEM at split2 stage?
- References: <0A882F4D99BBF6449D58E61AAFD7EDD603CF187D@pdsmsx502.ccr.corp.intel.com>
"Guo, Xuepeng" <xuepeng.guo@intel.com> writes:
> I am working on an optimization which happens at split2 stage. I
> need to determine whether the destination operand of the current RTL
> (which is a register operand) will be referred by other RTL through
> MEM within a basic block. I see there is a function named
> reg_mentioned_p (const_rtx reg, const_rtx in) in rtlanal.c to show
> whether REG appears somewhere within IN. It does help except that it
> can't tell me whether IN refers REG through MEM. Can anyone give me
> some suggestions?
You're going to have to write your own walker. There isn't any
generic code for this.
Are you sure you've described what you want? It sounds sort of
strange. Why should you care about an entire basic block and only a
basic block?
Ian