[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
Thu May 28 14:54:37 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rGa9c7b498621b: [SVE] Eliminate calls to default-false VectorType::get() from mlir (authored by ctetreau).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80340/new/
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.267052.patch
Type: text/x-patch
Size: 653 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200528/3a34f9ec/attachment.bin>
More information about the llvm-commits
mailing list