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:
a541931
)
Remove accidentally duplicated code.
author
Owen Anderson
<resistor@mac.com>
Wed, 9 Apr 2008 07:55:01 +0000
(07:55 +0000)
committer
Owen 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
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/GVN.cpp
b/lib/Transforms/Scalar/GVN.cpp
index 91f72c4ba65aacaf6fe67112abec4adddaaf7ebc..082c36192ae0021524053995bb0f2e1563c55cd1 100644
(file)
--- 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<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>();