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 | cc40a61af76eb3c49ce5b68c2f92076b5989e12b (patch) | |
tree | 9479a135a56e5de03d406816305fb4806b0b6f83 | |
parent | 6765d449ed05d4719f313c33a4c13de2649c32b7 (diff) | |
download | bcm5719-llvm-cc40a61af76eb3c49ce5b68c2f92076b5989e12b.tar.gz bcm5719-llvm-cc40a61af76eb3c49ce5b68c2f92076b5989e12b.zip |
Ignore debug info intrinsics.
llvm-svn: 65908
-rw-r--r-- | llvm/lib/Transforms/IPO/FunctionAttrs.cpp | 6 |
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()) |