[llvm-commits] [llvm] r127985 - /llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp
Duncan Sands
baldrick at free.fr
Mon Mar 21 01:45:42 PDT 2011
Hi Anders,
> @@ -2742,6 +2742,13 @@
> if (!CalledFn)
> return false;
>
> + if (unsigned IntrinsicID = CalledFn->getIntrinsicID()) {
> + // Ignore debug intrinsics.
> + if (IntrinsicID == llvm::Intrinsic::dbg_declare ||
> + IntrinsicID == llvm::Intrinsic::dbg_value)
> + continue;
> + }
> +
if (isa<DbgInfoIntrinsic>(CalledFn))
continue;
would be neater. See IntrinsicInst.h
Ciao, Duncan.
More information about the llvm-commits
mailing list