mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-04 01:26:41 +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:
parent
3d69cf57e1
commit
f5f44a149e
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user