[PATCH] D79821: [SVE] Remove usages of VectorType::getNumElements() from PowerPC
Christopher Tetreault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 15 12:33:03 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG0d5d5a75e21f: [SVE] Remove usages of VectorType::getNumElements() from PowerPC (authored by ctetreau).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79821/new/
https://reviews.llvm.org/D79821
Files:
llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
Index: llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
===================================================================
--- llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
+++ llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
@@ -912,7 +912,8 @@
// 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 = cast<VectorType>(Src)->getNumElements(); i < e; ++i)
+ for (int i = 0, e = cast<FixedVectorType>(Src)->getNumElements(); i < e;
+ ++i)
Cost += getVectorInstrCost(Instruction::ExtractElement, Src, i);
return Cost;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79821.264317.patch
Type: text/x-patch
Size: 691 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200515/0a40c5fb/attachment.bin>
More information about the llvm-commits
mailing list