[llvm] r200071 - Use isConcrete and getConcrete instead of using TypeVec directly.
Craig Topper
craig.topper at gmail.com
Fri Jan 24 21:33:48 PST 2014
Author: ctopper
Date: Fri Jan 24 23:33:48 2014
New Revision: 200071
URL: http://llvm.org/viewvc/llvm-project?rev=200071&view=rev
Log:
Use isConcrete and getConcrete instead of using TypeVec directly.
Modified:
llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp
Modified: llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp?rev=200071&r1=200070&r2=200071&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp (original)
+++ llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp Fri Jan 24 23:33:48 2014
@@ -374,7 +374,7 @@ bool EEVT::TypeSet::EnforceSmallerThan(E
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(E
// 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())
More information about the llvm-commits
mailing list