From: Craig Topper Date: Sat, 25 Jan 2014 05:17:38 +0000 (+0000) Subject: Fix EnforceSmallerThan to check !hasVectorTypes on the other type instead of this... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f5f44a149e83b8184b760dd6be786bf34d8d830d;p=oota-llvm.git Fix EnforceSmallerThan to check !hasVectorTypes on the other type instead of this type to force this type to be scalar. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200070 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/CodeGenDAGPatterns.cpp b/utils/TableGen/CodeGenDAGPatterns.cpp index 6941732aaac..3f165b51d4c 100644 --- a/utils/TableGen/CodeGenDAGPatterns.cpp +++ b/utils/TableGen/CodeGenDAGPatterns.cpp @@ -371,7 +371,7 @@ bool EEVT::TypeSet::EnforceSmallerThan(EEVT::TypeSet &Other, TreePattern &TP) { // If one contains vectors but the other doesn't pull vectors out. if (!hasVectorTypes()) MadeChange |= Other.EnforceScalar(TP); - if (!hasVectorTypes()) + if (!Other.hasVectorTypes()) MadeChange |= EnforceScalar(TP); if (TypeVec.size() == 1 && Other.TypeVec.size() == 1) {