llvm-6502/lib/Transforms
Duncan Sands 3cd652d530 Add a small pass that sets the readnone/readonly
attributes on functions, based on the result of
alias analysis.  It's not hardwired to use
GlobalsModRef even though this is the only (AFAIK)
alias analysis that results in this pass actually
doing something.  Enable as follows:
  opt ... -globalsmodref-aa -markmodref ...
Advantages of this pass: (1) records the result
of globalsmodref in the bitcode, meaning it is
available for use by later passes (currently
the pass manager isn't smart enough to magically
make an advanced alias analysis available to all
later passes), which may expose more optimization
opportunities; (2) hopefully speeds up compilation
when code is optimized twice, for example when a
file is compiled to bitcode, then later LTO is done
on it: marking functions readonly/readnone when
producing the initial bitcode should speed up alias
analysis during LTO; (3) good for discovering that
globalsmodref doesn't work very well :)
Not currently turned on by default.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55604 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-01 11:40:11 +00:00
..
Hello Clean up the use of static and anonymous namespaces. This turned up 2008-05-13 00:00:25 +00:00
Instrumentation Trim #includes. 2008-08-05 15:32:23 +00:00
IPO Use empty() instead of begin() == end(). 2008-08-14 18:13:49 +00:00
Scalar Add a small pass that sets the readnone/readonly 2008-09-01 11:40:11 +00:00
Utils Switch the asmprinter (.ll) and all the stuff it requires over to 2008-08-23 22:23:09 +00:00
Makefile remove attribution from lib Makefiles. 2007-12-29 20:09:26 +00:00