aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2007-12-12 16:01:40 +0000
committerDuncan Sands <baldrick@free.fr>2007-12-12 16:01:40 +0000
commit7915cbee4d6ecc8bc2daa9fb44833a134a25016b (patch)
treed9083921606c41112977ab70920395549cbdc00c /lib/VMCore
parented2232502eac83d649c61c3f9bbfbd642b864319 (diff)
downloadexternal_llvm-7915cbee4d6ecc8bc2daa9fb44833a134a25016b.zip
external_llvm-7915cbee4d6ecc8bc2daa9fb44833a134a25016b.tar.gz
external_llvm-7915cbee4d6ecc8bc2daa9fb44833a134a25016b.tar.bz2
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
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/Instruction.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/VMCore/Instruction.cpp b/lib/VMCore/Instruction.cpp
index 7fc6245..9b20885 100644
--- a/lib/VMCore/Instruction.cpp
+++ b/lib/VMCore/Instruction.cpp
@@ -13,7 +13,6 @@
#include "llvm/Type.h"
#include "llvm/Instructions.h"
-#include "llvm/IntrinsicInst.h" // FIXME: remove
#include "llvm/Function.h"
#include "llvm/Support/CallSite.h"
#include "llvm/Support/LeakDetector.h"
@@ -209,8 +208,6 @@ bool Instruction::mayWriteToMemory() const {
case Instruction::VAArg:
return true;
case Instruction::Call:
- if (!isa<IntrinsicInst>(this))
- return true; // FIXME: workaround gcc bootstrap breakage
return !cast<CallInst>(this)->onlyReadsMemory();
case Instruction::Load:
return cast<LoadInst>(this)->isVolatile();