llvm.org GIT mirror llvm / f5f44a1
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 Craig Topper 6 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
370370 // If one contains vectors but the other doesn't pull vectors out.
371371 if (!hasVectorTypes())
372372 MadeChange |= Other.EnforceScalar(TP);
373 if (!hasVectorTypes())
373 if (!Other.hasVectorTypes())
374374 MadeChange |= EnforceScalar(TP);
375375
376376 if (TypeVec.size() == 1 && Other.TypeVec.size() == 1) {