Revert r44626, which turned off the use of readonly
authorDuncan Sands <baldrick@free.fr>
Wed, 12 Dec 2007 16:01:40 +0000 (16:01 +0000)
committerDuncan Sands <baldrick@free.fr>
Wed, 12 Dec 2007 16:01:40 +0000 (16:01 +0000)
commit7915cbee4d6ecc8bc2daa9fb44833a134a25016b
treed9083921606c41112977ab70920395549cbdc00c
parented2232502eac83d649c61c3f9bbfbd642b864319
Revert r44626, which turned off the use of readonly
and readnone for functions with bodies because it
broke llvm-gcc-4.2 bootstrap.  It turns out that,
because of LLVM's array_ref hack, gcc was computing
pure/const attributes wrong (now fixed by turning
off the gcc ipa-pure-const pass).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44937 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/AliasAnalysis.cpp
lib/VMCore/Instruction.cpp