From f5f44a149e83b8184b760dd6be786bf34d8d830d Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sat, 25 Jan 2014 05:17:38 +0000 Subject: [PATCH] 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 --- utils/TableGen/CodeGenDAGPatterns.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.34.1