summaryrefslogtreecommitdiff
path: root/mlir/lib/Conversion/VectorToGPU/VectorToGPU.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-09-18 17:46:53 -0700
committerKazu Hirata <kazu@google.com>2022-09-18 17:46:53 -0700
commitbe650de57d8c5ab6a74a59ebf7bc67ba5d5d598d (patch)
tree43764dc0a1aeba5cec497d3c257a16fb3b9d2add /mlir/lib/Conversion/VectorToGPU/VectorToGPU.cpp
parente5581df60a35fffb0c69589777e4e126c849405f (diff)
[mlir] Use empty (NFC)
Diffstat (limited to 'mlir/lib/Conversion/VectorToGPU/VectorToGPU.cpp')
-rw-r--r--mlir/lib/Conversion/VectorToGPU/VectorToGPU.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Conversion/VectorToGPU/VectorToGPU.cpp b/mlir/lib/Conversion/VectorToGPU/VectorToGPU.cpp
index 707a35044980..7a847c71f36e 100644
--- a/mlir/lib/Conversion/VectorToGPU/VectorToGPU.cpp
+++ b/mlir/lib/Conversion/VectorToGPU/VectorToGPU.cpp
@@ -66,7 +66,7 @@ static void getXferIndices(OpBuilder &b, TransferOpType xferOp,
// Return true if the contract op can be convert to MMA matmul.
static bool contractSupportsMMAMatrixType(vector::ContractionOp contract,
bool useNvGpu) {
- if (llvm::size(contract.getMasks()) != 0)
+ if (!contract.getMasks().empty())
return false;
using MapList = ArrayRef<ArrayRef<AffineExpr>>;