Fix EnforceSmallerThan to check !hasVectorTypes on the other type instead of this...
authorCraig Topper <craig.topper@gmail.com>
Sat, 25 Jan 2014 05:17:38 +0000 (05:17 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sat, 25 Jan 2014 05:17:38 +0000 (05:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200070 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/CodeGenDAGPatterns.cpp

index 6941732aaac58f797f5f790271ac5aac6d4f6c8f..3f165b51d4cbb0ddcbe65f8a0f0e0b0cebd6d3ae 100644 (file)
@@ -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) {