[Mlir-commits] [mlir] a9c7b49 - [SVE] Eliminate calls to default-false VectorType::get() from mlir

Christopher Tetreault llvmlistbot at llvm.org
Thu May 28 14:43:07 PDT 2020


Author: Christopher Tetreault
Date: 2020-05-28T14:42:51-07:00
New Revision: a9c7b498621b41e8e25ec8e23a6ba38dc8230282

URL: https://github.com/llvm/llvm-project/commit/a9c7b498621b41e8e25ec8e23a6ba38dc8230282
DIFF: https://github.com/llvm/llvm-project/commit/a9c7b498621b41e8e25ec8e23a6ba38dc8230282.diff

LOG: [SVE] Eliminate calls to default-false VectorType::get() from mlir

Reviewers: efriedma, ftynse, c-rhodes, david-arm, rriddle

Reviewed By: ftynse

Subscribers: tschuett, rkruppe, psnobl, mehdi_amini, rriddle, jpienaar, shauheen, antiagainst, nicolasvasilache, arpith-jacob, mgester, lucyrfox, liufengdb, stephenneuendorffer, Joonsoo, grosul1, frgossen, Kayjukh, jurahul, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D80340

Added: 
    

Modified: 
    mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp b/mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
index 3a055d04b962..2c6478ddd121 100644
--- a/mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
+++ b/mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
@@ -1925,7 +1925,8 @@ LLVMType LLVMType::setStructTyBody(LLVMType structType,
 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);
   });
 }
 


        


More information about the Mlir-commits mailing list