mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-08 19:25:47 +00:00
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
This commit is contained in:
@@ -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 one contains vectors but the other doesn't pull vectors out.
|
||||||
if (!hasVectorTypes())
|
if (!hasVectorTypes())
|
||||||
MadeChange |= Other.EnforceScalar(TP);
|
MadeChange |= Other.EnforceScalar(TP);
|
||||||
if (!hasVectorTypes())
|
if (!Other.hasVectorTypes())
|
||||||
MadeChange |= EnforceScalar(TP);
|
MadeChange |= EnforceScalar(TP);
|
||||||
|
|
||||||
if (TypeVec.size() == 1 && Other.TypeVec.size() == 1) {
|
if (TypeVec.size() == 1 && Other.TypeVec.size() == 1) {
|
||||||
|
Reference in New Issue
Block a user