[PATCH] D80340: [SVE] Eliminate calls to default-false VectorType::get() from mlir
Christopher Tetreault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 20 16:33:53 PDT 2020
ctetreau created this revision.
Herald added subscribers: llvm-commits, jurahul, Kayjukh, frgossen, grosul1, Joonsoo, stephenneuendorffer, liufengdb, lucyrfox, mgester, arpith-jacob, nicolasvasilache, antiagainst, shauheen, jpienaar, rriddle, mehdi_amini, psnobl, rkruppe, tschuett.
Herald added a reviewer: efriedma.
Herald added a reviewer: ftynse.
Herald added a project: LLVM.
ctetreau added reviewers: c-rhodes, david-arm, rriddle.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D80340
Files:
mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
Index: mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
===================================================================
--- mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
+++ mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
@@ -1925,7 +1925,8 @@
LLVMType LLVMType::getVectorTy(LLVMType elementType, unsigned numElements) {
// Lock access to the dialect as this may modify the LLVM context.
return getLocked(&elementType.getDialect(), [=] {
- return llvm::VectorType::get(elementType.getUnderlyingType(), numElements);
+ return llvm::FixedVectorType::get(elementType.getUnderlyingType(),
+ numElements);
});
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80340.265379.patch
Type: text/x-patch
Size: 653 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200520/2839f68a/attachment.bin>
More information about the llvm-commits
mailing list