diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-01-25 05:17:38 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-01-25 05:17:38 +0000 |
commit | f5f44a149e83b8184b760dd6be786bf34d8d830d (patch) | |
tree | 7fdece00b6a31a40dbefe674718b8c6689aefbe5 /utils | |
parent | 3d69cf57e10d9c263574f2a2cda8e524db4ee163 (diff) | |
download | llvm-f5f44a149e83b8184b760dd6be786bf34d8d830d.tar.gz llvm-f5f44a149e83b8184b760dd6be786bf34d8d830d.tar.bz2 llvm-f5f44a149e83b8184b760dd6be786bf34d8d830d.tar.xz |
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
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/CodeGenDAGPatterns.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/CodeGenDAGPatterns.cpp b/utils/TableGen/CodeGenDAGPatterns.cpp index 6941732aaa..3f165b51d4 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) { |