llvm-6502/lib
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
..
Analysis rename destroy -> releaseMemory to properly hook into passmgr. 2008-08-28 22:56:53 +00:00
Archive Fold the useful features of alist and alist_node into ilist, and 2008-07-28 21:51:04 +00:00
AsmParser regenerate 2008-08-29 17:20:18 +00:00
Bitcode add #include 2008-08-23 21:33:24 +00:00
CodeGen Cosmetic changes to Machine LICM. No functionality change. 2008-08-31 02:30:23 +00:00
Debugger Add #include 2008-08-23 21:34:34 +00:00
ExecutionEngine Add support for JIT exceptions on Darwin. Since we're dealing with libgcc, 2008-08-28 22:34:49 +00:00
Linker Reimplement LinkFunctionProtos in terms of GetLinkageResult. This fixes 2008-07-14 07:23:24 +00:00
Support Updating VC++ project. 2008-08-24 11:56:40 +00:00
System add a helper method to sys::Path for clang, patch by 2008-08-11 23:39:47 +00:00
Target Control flow instruction encodings. 2008-09-01 08:25:56 +00:00
Transforms Add a small pass that sets the readnone/readonly 2008-09-01 11:40:11 +00:00
VMCore PR2731: C and Ocaml bindings for setTailCall and isTailCall. 2008-08-30 16:34:54 +00:00
Makefile remove attribution from lib Makefiles. 2007-12-29 20:09:26 +00:00