summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-04-09 07:55:01 +0000
committerOwen Anderson <resistor@mac.com>2008-04-09 07:55:01 +0000
commit8ee792d1b6d89d42c82c164a72564efc6e508418 (patch)
tree184e16a33dabd0db59906a423a3abd40162b2079 /llvm/lib/Transforms
parent0515472470adbb5e3f54ea0c82c671d775b6c36f (diff)
downloadbcm5719-llvm-8ee792d1b6d89d42c82c164a72564efc6e508418.tar.gz
bcm5719-llvm-8ee792d1b6d89d42c82c164a72564efc6e508418.zip
Remove accidentally duplicated code.
llvm-svn: 49418
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/GVN.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Scalar/GVN.cpp b/llvm/lib/Transforms/Scalar/GVN.cpp
index 91f72c4ba65..082c36192ae 100644
--- a/llvm/lib/Transforms/Scalar/GVN.cpp
+++ b/llvm/lib/Transforms/Scalar/GVN.cpp
@@ -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>();
OpenPOWER on IntegriCloud