projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a2798c
)
[mlir] Fix 1 ClangTidyPerformance finding (NFC)
author
Adrian Kuegel
<akuegel@google.com>
Tue, 5 Apr 2022 07:28:42 +0000
(09:28 +0200)
committer
Adrian Kuegel
<akuegel@google.com>
Tue, 5 Apr 2022 07:29:35 +0000
(09:29 +0200)
mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp
patch
|
blob
|
history
diff --git
a/mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp
b/mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp
index
c2c1eb4
..
31683b4
100644
(file)
--- a/
mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp
+++ b/
mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp
@@
-291,7
+291,7
@@
ParseResult MmaOp::parse(OpAsmParser &parser, OperationState &result) {
parser.getNameLoc(),
"expected one type for each operand segment but got " +
Twine(operandTypes.size()) + " types");
- for (
auto
iter : llvm::enumerate(operandTypes)) {
+ for (
const auto&
iter : llvm::enumerate(operandTypes)) {
auto &frag = frags[iter.index()];
frag.regTypes.resize(frag.regs.size(), iter.value());
if (failed(parser.resolveOperands(frag.regs, frag.regTypes,