diff options
author | Devang Patel <dpatel@apple.com> | 2009-03-03 00:28:44 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-03-03 00:28:44 +0000 |
commit | cd11991203f2f8ca8b0c7bd920fa4e32b4f88e1d (patch) | |
tree | 559c47f3c3ecfd799d2f294be24cce3b4390f681 /lib/Transforms/IPO/FunctionAttrs.cpp | |
parent | cf42ee42b1a5444cd073703ff284ae0a41608227 (diff) |
Ignore debug info intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65908 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/FunctionAttrs.cpp')
-rw-r--r-- | lib/Transforms/IPO/FunctionAttrs.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/FunctionAttrs.cpp b/lib/Transforms/IPO/FunctionAttrs.cpp index 47485737ab..c68de4a011 100644 --- a/lib/Transforms/IPO/FunctionAttrs.cpp +++ b/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()) |