forked from OSchip/llvm-project
Clean up usages of asserting vector getters in Type
Summary: Remove usages of asserting vector getters in Type in preparation for the VectorType refactor. The existence of these functions complicates the refactor while adding little value. Reviewers: hfinkel, efriedma, sdesmalen Reviewed By: efriedma Subscribers: wuzish, nemanjai, hiraditya, kbarton, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D77266
This commit is contained in:
parent
b0bdaf9ba2
commit
49fd24fe9e
|
@ -901,7 +901,7 @@ int PPCTTIImpl::getMemoryOpCost(unsigned Opcode, Type *Src,
|
|||
// stores, loads are expanded using the vector-load + permutation sequence,
|
||||
// which is much less expensive).
|
||||
if (Src->isVectorTy() && Opcode == Instruction::Store)
|
||||
for (int i = 0, e = Src->getVectorNumElements(); i < e; ++i)
|
||||
for (int i = 0, e = cast<VectorType>(Src)->getNumElements(); i < e; ++i)
|
||||
Cost += getVectorInstrCost(Instruction::ExtractElement, Src, i);
|
||||
|
||||
return Cost;
|
||||
|
|
Loading…
Reference in New Issue