[llvm-commits] [llvm] r95828 - /llvm/trunk/lib/Transforms/Scalar/GVN.cpp
Devang Patel
dpatel at apple.com
Wed Feb 10 16:20:49 PST 2010
Author: dpatel
Date: Wed Feb 10 18:20:49 2010
New Revision: 95828
URL: http://llvm.org/viewvc/llvm-project?rev=95828&view=rev
Log:
Ignore dbg info intrinsics.
Modified:
llvm/trunk/lib/Transforms/Scalar/GVN.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/GVN.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/GVN.cpp?rev=95828&r1=95827&r2=95828&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/GVN.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/GVN.cpp Wed Feb 10 18:20:49 2010
@@ -1891,6 +1891,10 @@
/// by inserting it into the appropriate sets
bool GVN::processInstruction(Instruction *I,
SmallVectorImpl<Instruction*> &toErase) {
+ // Ignore dbg info intrinsics.
+ if (isa<DbgInfoIntrinsic>(I))
+ return false;
+
if (LoadInst *LI = dyn_cast<LoadInst>(I)) {
bool Changed = processLoad(LI, toErase);
More information about the llvm-commits
mailing list