diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-01-25 05:33:48 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-01-25 05:33:48 +0000 |
commit | f6deb1896884e899dd898b28c9f7825c0281ce15 (patch) | |
tree | a30f18d4c06a899b69d33e5d331d2cbc59cf7537 /utils | |
parent | f5f44a149e83b8184b760dd6be786bf34d8d830d (diff) | |
download | llvm-f6deb1896884e899dd898b28c9f7825c0281ce15.tar.gz llvm-f6deb1896884e899dd898b28c9f7825c0281ce15.tar.bz2 llvm-f6deb1896884e899dd898b28c9f7825c0281ce15.tar.xz |
Use isConcrete and getConcrete instead of using TypeVec directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200071 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/CodeGenDAGPatterns.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/TableGen/CodeGenDAGPatterns.cpp b/utils/TableGen/CodeGenDAGPatterns.cpp index 3f165b51d4..fe2ac1d21b 100644 --- a/utils/TableGen/CodeGenDAGPatterns.cpp +++ b/utils/TableGen/CodeGenDAGPatterns.cpp @@ -374,7 +374,7 @@ bool EEVT::TypeSet::EnforceSmallerThan(EEVT::TypeSet &Other, TreePattern &TP) { if (!Other.hasVectorTypes()) MadeChange |= EnforceScalar(TP); - if (TypeVec.size() == 1 && Other.TypeVec.size() == 1) { + if (isConcrete() && Other.isConcrete()) { // If we are down to concrete types, this code does not currently // handle nodes which have multiple types, where some types are // integer, and some are fp. Assert that this is not the case. @@ -385,8 +385,8 @@ bool EEVT::TypeSet::EnforceSmallerThan(EEVT::TypeSet &Other, TreePattern &TP) { // Otherwise, if these are both vector types, either this vector // must have a larger bitsize than the other, or this element type // must be larger than the other. - MVT Type(TypeVec[0]); - MVT OtherType(Other.TypeVec[0]); + MVT Type(getConcrete()); + MVT OtherType(Other.getConcrete()); if (hasVectorTypes() && Other.hasVectorTypes()) { if (Type.getSizeInBits() >= OtherType.getSizeInBits()) |