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]

Re: prevent optimisation of variables on SSA


On 8/15/08 1:00 PM, Martin Schindewolf wrote:
Hi all,

I currently introduce a temporary variable on SSA form but it
does not survive the SSA optimisation passes. (Not even the
simple ones triggered with -O1). Since the temporary variable
is considered to be a gimple register it is not possible to
set a VUSE or VDEF for it. (I tried and it breaks the SSA
properties). Are there any mechanisms to work around this
restriction and set the VDEF/VUSE anyway or is there a way to
tell the SSA optimisers not to touch this variable (or
SSA_NAME)?
Thank you very much for sharing your thoughts!

You are not providing enough information. Is the creating assignment for the new SSA variable dead? If there are no uses of your new variable, then DCE will remove the assignment.




Diego.


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