summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2010-10-30 16:12:16 +0000
committerDuncan Sands <baldrick@free.fr>2010-10-30 16:12:16 +0000
commite659aba51683f47e6395b47a8a8ba11830ee0478 (patch)
tree7718845d098a891b156647c884f2bfeeaffad302 /llvm/lib/Transforms
parent685b77332cb421703297898454fd14e90f5734b5 (diff)
downloadbcm5719-llvm-e659aba51683f47e6395b47a8a8ba11830ee0478.tar.gz
bcm5719-llvm-e659aba51683f47e6395b47a8a8ba11830ee0478.zip
Now that the MallocInst no longer exists, this workaround for
it claiming not to have side-effects is no longer needed. llvm-svn: 117789
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/IPO/FunctionAttrs.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
index 39f48145af1..9e117daa68e 100644
--- a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
+++ b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
@@ -26,7 +26,6 @@
#include "llvm/Analysis/AliasAnalysis.h"
#include "llvm/Analysis/CallGraph.h"
#include "llvm/Analysis/CaptureTracking.h"
-#include "llvm/Analysis/MemoryBuiltins.h"
#include "llvm/ADT/SmallSet.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/ADT/UniqueVector.h"
@@ -203,10 +202,6 @@ bool FunctionAttrs::AddReadAttrs(const CallGraphSCC &SCC) {
// Writes memory. Just give up.
return false;
- if (isMalloc(I))
- // malloc claims not to write memory! PR3754.
- return false;
-
// If this instruction may read memory, remember that.
ReadsMemory |= I->mayReadFromMemory();
}
OpenPOWER on IntegriCloud