[PATCH]: Teach call clobbering to use ipa static vars analysis results

Daniel Berlin dberlin@dberlin.org
Wed Jun 8 18:04:00 GMT 2005


Patch 6/7
This patch teaches call clobbering about the results of the IPA static
vars analysis, so we avoid call clobbering statics that aren't actually
call clobbered.


Unfortunately, this knows nothing of structure alias vars, since they
aren't created at ipa analysis time, so we'll still call clobber static
structures since they are only known by their SFT's.

I'd like to clean that up in a followup patch, it just requires some
bitmap futzing after SFT's are created.

Bootstrapped and regtested on i686-pc-linux-gnu and powerpc-linux-gnu.


2005-06-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
       Danny Berlin <dberlin@dberlin.org>

   * tree-ssa-operands (add_call_clobber_ops): Changed call clobbering
so that statics are not marked as clobbered if the call does not
   clobber them.




-------------- next part --------------
A non-text attachment was scrubbed...
Name: clobber.diff
Type: text/x-patch
Size: 7188 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050608/51b77ead/attachment.bin>


More information about the Gcc-patches mailing list