[llvm-commits] [llvm] r65963 - /llvm/branches/Apple/Dib/lib/Transforms/IPO/FunctionAttrs.cpp
Bill Wendling
isanbard at gmail.com
Tue Mar 3 11:27:51 PST 2009
Author: void
Date: Tue Mar 3 13:27:51 2009
New Revision: 65963
URL: http://llvm.org/viewvc/llvm-project?rev=65963&view=rev
Log:
--- Merging (from foreign repository) r65908 into '.':
U lib/Transforms/IPO/FunctionAttrs.cpp
Ignore debug info intrinsics.
Modified:
llvm/branches/Apple/Dib/lib/Transforms/IPO/FunctionAttrs.cpp
Modified: llvm/branches/Apple/Dib/lib/Transforms/IPO/FunctionAttrs.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Dib/lib/Transforms/IPO/FunctionAttrs.cpp?rev=65963&r1=65962&r2=65963&view=diff
==============================================================================
--- llvm/branches/Apple/Dib/lib/Transforms/IPO/FunctionAttrs.cpp (original)
+++ llvm/branches/Apple/Dib/lib/Transforms/IPO/FunctionAttrs.cpp Tue Mar 3 13:27:51 2009
@@ -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 @@
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())
More information about the llvm-commits
mailing list