[PATCH] D80326: [SVE] Eliminate calls to default-false VectorType::get() from Linker
Christopher Tetreault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 21 11:21:54 PDT 2020
ctetreau updated this revision to Diff 265544.
ctetreau added a comment.
address code review issues
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80326/new/
https://reviews.llvm.org/D80326
Files:
llvm/lib/Linker/IRMover.cpp
Index: llvm/lib/Linker/IRMover.cpp
===================================================================
--- llvm/lib/Linker/IRMover.cpp
+++ llvm/lib/Linker/IRMover.cpp
@@ -305,10 +305,11 @@
case Type::ArrayTyID:
return *Entry = ArrayType::get(ElementTypes[0],
cast<ArrayType>(Ty)->getNumElements());
- case Type::FixedVectorTyID:
case Type::ScalableVectorTyID:
- return *Entry = VectorType::get(ElementTypes[0],
- cast<VectorType>(Ty)->getNumElements());
+ // FIXME: handle scalable vectors
+ case Type::FixedVectorTyID:
+ return *Entry = FixedVectorType::get(
+ ElementTypes[0], cast<FixedVectorType>(Ty)->getNumElements());
case Type::PointerTyID:
return *Entry = PointerType::get(ElementTypes[0],
cast<PointerType>(Ty)->getAddressSpace());
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80326.265544.patch
Type: text/x-patch
Size: 895 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200521/63ba9ab1/attachment.bin>
More information about the llvm-commits
mailing list