summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2011-01-26 08:50:18 +0000
committerNick Lewycky <nicholas@mxc.ca>2011-01-26 08:50:18 +0000
commitfb622f99206f3f3b540f624223f689b90e4172f1 (patch)
tree57734e1c0624665bab79990e28823d7dee35b270 /llvm/lib
parent8a33733228db5a21b16e0532d5b2e0bae011a33a (diff)
downloadbcm5719-llvm-fb622f99206f3f3b540f624223f689b90e4172f1.tar.gz
bcm5719-llvm-fb622f99206f3f3b540f624223f689b90e4172f1.zip
There are no vectors of pointer or arrays, so we don't need to check vector
elements for type equivalence. llvm-svn: 124284
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/IPO/MergeFunctions.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/llvm/lib/Transforms/IPO/MergeFunctions.cpp b/llvm/lib/Transforms/IPO/MergeFunctions.cpp
index 15b6c56b667..8aa7cb24b95 100644
--- a/llvm/lib/Transforms/IPO/MergeFunctions.cpp
+++ b/llvm/lib/Transforms/IPO/MergeFunctions.cpp
@@ -295,6 +295,7 @@ bool FunctionComparator::isEquivalentType(const Type *Ty1,
// Fall through in Release mode.
case Type::IntegerTyID:
case Type::OpaqueTyID:
+ case Type::VectorTyID:
// Ty1 == Ty2 would have returned true earlier.
return false;
@@ -353,13 +354,6 @@ bool FunctionComparator::isEquivalentType(const Type *Ty1,
return ATy1->getNumElements() == ATy2->getNumElements() &&
isEquivalentType(ATy1->getElementType(), ATy2->getElementType());
}
-
- case Type::VectorTyID: {
- const VectorType *VTy1 = cast<VectorType>(Ty1);
- const VectorType *VTy2 = cast<VectorType>(Ty2);
- return VTy1->getNumElements() == VTy2->getNumElements() &&
- isEquivalentType(VTy1->getElementType(), VTy2->getElementType());
- }
}
}
OpenPOWER on IntegriCloud