This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
prevent optimisation of variables on SSA
- From: Martin Schindewolf <schindew at ira dot uka dot de>
- To: gcc at gcc dot gnu dot org
- Cc: Albert Cohen <Albert dot Cohen at inria dot fr>
- Date: Fri, 15 Aug 2008 19:00:51 +0200
- Subject: prevent optimisation of variables on SSA
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!
Regards,
Martin