aboutsummaryrefslogtreecommitdiffstats
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
commitaa660993304216053b578aeb2537d26071c3a51e (patch)
tree996096f000bc8dc05da647c80c5b8114b12caa75
parentd2f14256f06725840f35adcc2557b48fc9ade694 (diff)
downloadexternal_llvm-aa660993304216053b578aeb2537d26071c3a51e.zip
external_llvm-aa660993304216053b578aeb2537d26071c3a51e.tar.gz
external_llvm-aa660993304216053b578aeb2537d26071c3a51e.tar.bz2
Now that the MallocInst no longer exists, this workaround for
it claiming not to have side-effects is no longer needed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117789 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/IPO/FunctionAttrs.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/Transforms/IPO/FunctionAttrs.cpp b/lib/Transforms/IPO/FunctionAttrs.cpp
index 39f48145..9e117da 100644
--- a/lib/Transforms/IPO/FunctionAttrs.cpp
+++ b/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();
}