llvm.org GIT mirror llvm / f6deb18
Use isConcrete and getConcrete instead of using TypeVec directly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200071 91177308-0d34-0410-b5e6-96231b3b80d8 Craig Topper 6 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
373373 if (!Other.hasVectorTypes())
374374 MadeChange |= EnforceScalar(TP);
375375
376 if (TypeVec.size() == 1 && Other.TypeVec.size() == 1) {
376 if (isConcrete() && Other.isConcrete()) {
377377 // If we are down to concrete types, this code does not currently
378378 // handle nodes which have multiple types, where some types are
379379 // integer, and some are fp. Assert that this is not the case.
384384 // Otherwise, if these are both vector types, either this vector
385385 // must have a larger bitsize than the other, or this element type
386386 // must be larger than the other.
387 MVT Type(TypeVec[0]);
388 MVT OtherType(Other.TypeVec[0]);
387 MVT Type(getConcrete());
388 MVT OtherType(Other.getConcrete());
389389
390390 if (hasVectorTypes() && Other.hasVectorTypes()) {
391391 if (Type.getSizeInBits() >= OtherType.getSizeInBits())