1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Now that the MallocInst no longer exists, this workaround for

it claiming not to have side-effects is no longer needed.

llvm-svn: 117789
This commit is contained in:
Duncan Sands 2010-10-30 16:12:16 +00:00
parent c160d7a3ae
commit a8d9d6c6e3

View File

@ -26,7 +26,6 @@
#include "llvm/Analysis/AliasAnalysis.h" #include "llvm/Analysis/AliasAnalysis.h"
#include "llvm/Analysis/CallGraph.h" #include "llvm/Analysis/CallGraph.h"
#include "llvm/Analysis/CaptureTracking.h" #include "llvm/Analysis/CaptureTracking.h"
#include "llvm/Analysis/MemoryBuiltins.h"
#include "llvm/ADT/SmallSet.h" #include "llvm/ADT/SmallSet.h"
#include "llvm/ADT/Statistic.h" #include "llvm/ADT/Statistic.h"
#include "llvm/ADT/UniqueVector.h" #include "llvm/ADT/UniqueVector.h"
@ -203,10 +202,6 @@ bool FunctionAttrs::AddReadAttrs(const CallGraphSCC &SCC) {
// Writes memory. Just give up. // Writes memory. Just give up.
return false; return false;
if (isMalloc(I))
// malloc claims not to write memory! PR3754.
return false;
// If this instruction may read memory, remember that. // If this instruction may read memory, remember that.
ReadsMemory |= I->mayReadFromMemory(); ReadsMemory |= I->mayReadFromMemory();
} }