[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 13:14:35 PDT 2020


ctetreau updated this revision to Diff 267018.
ctetreau added a comment.

rebase


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.267018.patch
Type: text/x-patch
Size: 653 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200528/595331b0/attachment.bin>


More information about the llvm-commits mailing list