[llvm] r200070 - Fix EnforceSmallerThan to check !hasVectorTypes on the other type instead of this type to force this type to be scalar.

Craig Topper craig.topper at gmail.com
Fri Jan 24 21:17:38 PST 2014


Author: ctopper
Date: Fri Jan 24 23:17:38 2014
New Revision: 200070

URL: http://llvm.org/viewvc/llvm-project?rev=200070&view=rev
Log:
Fix EnforceSmallerThan to check !hasVectorTypes on the other type instead of this type to force this type to be scalar.

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=200070&r1=200069&r2=200070&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp (original)
+++ llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp Fri Jan 24 23:17:38 2014
@@ -371,7 +371,7 @@ bool EEVT::TypeSet::EnforceSmallerThan(E
   // 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) {





More information about the llvm-commits mailing list