projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e45252e
)
remove some dead code.
author
Chris Lattner
<sabre@nondot.org>
Wed, 13 Feb 2008 17:18:26 +0000
(17:18 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 13 Feb 2008 17:18:26 +0000
(17:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47066
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/IPO/ConstantMerge.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/IPO/ConstantMerge.cpp
b/lib/Transforms/IPO/ConstantMerge.cpp
index 7c71065674ec798a538f6f75de871a0d91cff503..401a36e82e52e3c4b620bf0264888ed316009bae 100644
(file)
--- a/
lib/Transforms/IPO/ConstantMerge.cpp
+++ b/
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;
}
}
}