forked from OSchip/llvm-project
Fix build issue caused by f693f915a0
This commit is contained in:
parent
8796746b2a
commit
81b7e2141f
|
@ -943,7 +943,12 @@ public:
|
|||
if (CostKind != TTI::TCK_RecipThroughput)
|
||||
return Cost;
|
||||
|
||||
if (Src->isVectorTy() && EVT::getEVT(Src).bitsLT(LT.second)) {
|
||||
if (Src->isVectorTy() &&
|
||||
// In practice it's not currently possible to have a change in lane
|
||||
// length for extending loads or truncating stores so both types should
|
||||
// have the same scalable property.
|
||||
TypeSize::isKnownLT(Src->getPrimitiveSizeInBits(),
|
||||
LT.second.getSizeInBits())) {
|
||||
// This is a vector load that legalizes to a larger type than the vector
|
||||
// itself. Unless the corresponding extending load or truncating store is
|
||||
// legal, then this will scalarize.
|
||||
|
|
Loading…
Reference in New Issue