llvm-6502/include/llvm/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
..
IPO Revert 51775. 2008-05-30 22:47:19 +00:00
Utils Make MergeBlockIntoPredecessor more aggressive when the same successor appears 2008-07-17 19:42:29 +00:00
Instrumentation.h fix typos 2008-03-06 10:36:00 +00:00
IPO.h Add missing semicolumn in my last commit. 2008-06-26 09:49:38 +00:00
RSProfiling.h Don't attribute in file headers anymore. See llvmdev for the 2007-12-29 19:59:42 +00:00
Scalar.h Add a small pass that sets the readnone/readonly 2008-09-01 11:40:11 +00:00