From: Christopher Tetreault Date: Thu, 28 May 2020 21:24:13 +0000 (-0700) Subject: [SVE] Eliminate calls to default-false VectorType::get() from mlir X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=a9c7b498621b41e8e25ec8e23a6ba38dc8230282;p=android-x86%2Fexternal-llvm-project.git [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 --- diff --git a/mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp b/mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp index 3a055d04b96..2c6478ddd12 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); }); }