[llvm-commits] [poolalloc] r166575 - /poolalloc/branches/release_30/lib/DSA/Local.cpp

John Criswell criswell at uiuc.edu
Wed Oct 24 08:40:05 PDT 2012


Author: criswell
Date: Wed Oct 24 10:40:04 2012
New Revision: 166575

URL: http://llvm.org/viewvc/llvm-project?rev=166575&view=rev
Log:
Ignore LLVM debug intrinsics.
This fixes PR#14165: http://llvm.org/bugs/show_bug.cgi?id=14165

Modified:
    poolalloc/branches/release_30/lib/DSA/Local.cpp

Modified: poolalloc/branches/release_30/lib/DSA/Local.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/branches/release_30/lib/DSA/Local.cpp?rev=166575&r1=166574&r2=166575&view=diff
==============================================================================
--- poolalloc/branches/release_30/lib/DSA/Local.cpp (original)
+++ poolalloc/branches/release_30/lib/DSA/Local.cpp Wed Oct 24 10:40:04 2012
@@ -21,6 +21,7 @@
 #include "llvm/Intrinsics.h"
 #include "llvm/DerivedTypes.h"
 #include "llvm/Instructions.h"
+#include "llvm/IntrinsicInst.h"
 #include "llvm/Support/GetElementPtrTypeIterator.h"
 #include "llvm/Support/InstVisitor.h"
 #include "llvm/Support/CommandLine.h"
@@ -906,6 +907,13 @@
 ///
 bool GraphBuilder::visitIntrinsic(CallSite CS, Function *F) {
   ++NumIntrinsicCall;
+
+  //
+  // If this is a debug intrinsic, then don't do any special processing.
+  //
+  if (isa<DbgInfoIntrinsic>(CS.getInstruction()))
+    return true;
+
   switch (F->getIntrinsicID()) {
   case Intrinsic::vastart: {
     visitVAStartInst(CS);





More information about the llvm-commits mailing list