[llvm] 77b1ed4 - [SVE] Eliminate calls to default-false VectorType::get() from Linker
Christopher Tetreault via llvm-commits
llvm-commits at lists.llvm.org
Fri May 29 17:43:34 PDT 2020
Author: Christopher Tetreault
Date: 2020-05-29T17:43:15-07:00
New Revision: 77b1ed4b4a492d5236f936f14caedd44b275e472
URL: https://github.com/llvm/llvm-project/commit/77b1ed4b4a492d5236f936f14caedd44b275e472
DIFF: https://github.com/llvm/llvm-project/commit/77b1ed4b4a492d5236f936f14caedd44b275e472.diff
LOG: [SVE] Eliminate calls to default-false VectorType::get() from Linker
Reviewers: efriedma, tejohnson, sdesmalen, c-rhodes
Reviewed By: efriedma
Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D80326
Added:
Modified:
llvm/lib/Linker/IRMover.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Linker/IRMover.cpp b/llvm/lib/Linker/IRMover.cpp
index ce1133583f7a..055689b16e8f 100644
--- a/llvm/lib/Linker/IRMover.cpp
+++ b/llvm/lib/Linker/IRMover.cpp
@@ -305,10 +305,11 @@ Type *TypeMapTy::get(Type *Ty, SmallPtrSet<StructType *, 8> &Visited) {
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());
More information about the llvm-commits
mailing list