diff --git a/lib/Transforms/Scalar/GVN.cpp b/lib/Transforms/Scalar/GVN.cpp index 91f72c4ba65..082c36192ae 100644 --- a/lib/Transforms/Scalar/GVN.cpp +++ b/lib/Transforms/Scalar/GVN.cpp @@ -1586,10 +1586,6 @@ bool GVN::processInstruction(Instruction *I, ValueNumberedSet &currAvail, if (isa(I)) return false; - // Allocations are always unique, so don't bother value numbering them. - if (isa(I)) - return false; - if (MemCpyInst* M = dyn_cast(I)) { MemoryDependenceAnalysis& MD = getAnalysis();