Ignore dbg info intrinsics.

llvm-svn: 95828
This commit is contained in:
Devang Patel 2010-02-11 00:20:49 +00:00
parent 37993197bf
commit 03936a1880
1 changed files with 4 additions and 0 deletions

View File

@ -1891,6 +1891,10 @@ Value *GVN::lookupNumber(BasicBlock *BB, uint32_t num) {
/// 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);