diff options
author | Duncan Sands <baldrick@free.fr> | 2007-12-12 16:01:40 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2007-12-12 16:01:40 +0000 |
commit | 9ab0943b8687b220252b88d84b2b14218421eb3c (patch) | |
tree | c02ab38d6881b41acd2cc293ff1b7795c053e0e6 /llvm/lib/VMCore/Instruction.cpp | |
parent | 309e5a723b26f1a59c25bb1c629e6c7b0216eaa5 (diff) | |
download | bcm5719-llvm-9ab0943b8687b220252b88d84b2b14218421eb3c.tar.gz bcm5719-llvm-9ab0943b8687b220252b88d84b2b14218421eb3c.zip |
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).
llvm-svn: 44937
Diffstat (limited to 'llvm/lib/VMCore/Instruction.cpp')
-rw-r--r-- | llvm/lib/VMCore/Instruction.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/VMCore/Instruction.cpp b/llvm/lib/VMCore/Instruction.cpp index 7fc6245f6da..9b208854ba1 100644 --- a/llvm/lib/VMCore/Instruction.cpp +++ b/llvm/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(); |