Remove accidentally duplicated code.
authorOwen Anderson <resistor@mac.com>
Wed, 9 Apr 2008 07:55:01 +0000 (07:55 +0000)
committerOwen Anderson <resistor@mac.com>
Wed, 9 Apr 2008 07:55:01 +0000 (07:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49418 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/GVN.cpp

index 91f72c4ba65aacaf6fe67112abec4adddaaf7ebc..082c36192ae0021524053995bb0f2e1563c55cd1 100644 (file)
@@ -1586,10 +1586,6 @@ bool GVN::processInstruction(Instruction *I, ValueNumberedSet &currAvail,
   if (isa<AllocationInst>(I))
     return false;
   
-  // Allocations are always unique, so don't bother value numbering them.
-  if (isa<AllocationInst>(I))
-    return false;
-  
   if (MemCpyInst* M = dyn_cast<MemCpyInst>(I)) {
     MemoryDependenceAnalysis& MD = getAnalysis<MemoryDependenceAnalysis>();