summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-03-03 00:28:44 +0000
committerDevang Patel <dpatel@apple.com>2009-03-03 00:28:44 +0000
commitcc40a61af76eb3c49ce5b68c2f92076b5989e12b (patch)
tree9479a135a56e5de03d406816305fb4806b0b6f83 /llvm/lib
parent6765d449ed05d4719f313c33a4c13de2649c32b7 (diff)
downloadbcm5719-llvm-cc40a61af76eb3c49ce5b68c2f92076b5989e12b.tar.gz
bcm5719-llvm-cc40a61af76eb3c49ce5b68c2f92076b5989e12b.zip
Ignore debug info intrinsics.
llvm-svn: 65908
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/IPO/FunctionAttrs.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
index 47485737ab8..c68de4a0115 100644
--- a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
+++ b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
@@ -22,7 +22,7 @@
#include "llvm/Transforms/IPO.h"
#include "llvm/CallGraphSCCPass.h"
#include "llvm/GlobalVariable.h"
-#include "llvm/Instructions.h"
+#include "llvm/IntrinsicInst.h"
#include "llvm/Analysis/CallGraph.h"
#include "llvm/Analysis/CaptureTracking.h"
#include "llvm/ADT/SmallSet.h"
@@ -137,6 +137,10 @@ bool FunctionAttrs::AddReadAttrs(const std::vector<CallGraphNode *> &SCC) {
continue;
}
+ // Ignore dbg info intrinsics.
+ if (isa<DbgInfoIntrinsic>(I))
+ continue;
+
// Any remaining instructions need to be taken seriously! Check if they
// read or write memory.
if (I->mayWriteToMemory())
OpenPOWER on IntegriCloud