This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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 (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?

Thanks
Xuepeng Guo


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]