RE: How can I determine a register is referred through MEM at split2 stage?

2008-12-16 Thread Guo, Xuepeng
ion of ADD holds an address operands to decide whether split ADD to LEA. Thanks Xuepeng Guo -Original Message- From: Ian Lance Taylor [mailto:i...@google.com] Sent: 2008年12月17日 15:08 To: Guo, Xuepeng Cc: gcc@gcc.gnu.org; Lu, Hongjiu; Ye, Joey; Lin, Weiliang Subject: Re: How can I determi

How can I determine a register is referred through MEM at split2 stage?

2008-12-16 Thread Guo, Xuepeng
Hello Everyone, 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 (co