diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-01-26 08:50:18 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-01-26 08:50:18 +0000 |
commit | 388f4918fbd8349a6c5b8403e31f65aa3408add6 (patch) | |
tree | cc83394381ea69d3d8b23ebd82ef9bb59674b917 /lib/Transforms/IPO/MergeFunctions.cpp | |
parent | 464a4f349c95a25d06d709e79d7df21fbbb155e2 (diff) |
There are no vectors of pointer or arrays, so we don't need to check vector
elements for type equivalence.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124284 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/MergeFunctions.cpp')
-rw-r--r-- | lib/Transforms/IPO/MergeFunctions.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/Transforms/IPO/MergeFunctions.cpp b/lib/Transforms/IPO/MergeFunctions.cpp index 15b6c56b66..8aa7cb24b9 100644 --- a/lib/Transforms/IPO/MergeFunctions.cpp +++ b/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()); - } } } |