summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-02-13 17:18:26 +0000
committerChris Lattner <sabre@nondot.org>2008-02-13 17:18:26 +0000
commit67b9ef7be8d19d4c50540eefcdb81df9656f80af (patch)
tree5f0b76e9377202c3cf9cde7795799ea44c1147c6 /llvm/lib/Transforms
parentf64f7fb1b699487e72349a10fa7c0450b69c5102 (diff)
downloadbcm5719-llvm-67b9ef7be8d19d4c50540eefcdb81df9656f80af.tar.gz
bcm5719-llvm-67b9ef7be8d19d4c50540eefcdb81df9656f80af.zip
remove some dead code.
llvm-svn: 47066
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/IPO/ConstantMerge.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/IPO/ConstantMerge.cpp b/llvm/lib/Transforms/IPO/ConstantMerge.cpp
index 7c71065674e..401a36e82e5 100644
--- a/llvm/lib/Transforms/IPO/ConstantMerge.cpp
+++ b/llvm/lib/Transforms/IPO/ConstantMerge.cpp
@@ -87,10 +87,6 @@ bool ConstantMerge::runOnModule(Module &M) {
} else if (GV->hasInternalLinkage()) { // Yup, this is a duplicate!
// Make all uses of the duplicate constant use the canonical version.
Replacements.push_back(std::make_pair(GV, Slot));
- } else if (GV->hasInternalLinkage()) {
- // Make all uses of the duplicate constant use the canonical version.
- Replacements.push_back(std::make_pair(Slot, GV));
- Slot = GV;
}
}
}
OpenPOWER on IntegriCloud