mirror of
https://github.com/intel/llvm.git
synced 2026-01-25 10:55:58 +08:00
[mlir][linalg] Tune getTiedIndexingMap method (NFC).
Optimize the performance by using the range directly. Reviewed By: benvanik Differential Revision: https://reviews.llvm.org/D108715
This commit is contained in:
@@ -589,7 +589,9 @@ def LinalgStructuredInterface : OpInterface<"LinalgOp"> {
|
||||
/*methodBody=*/"",
|
||||
/*defaultImplementation=*/[{
|
||||
assert(opOperand->getOwner() == this->getOperation());
|
||||
return getIndexingMaps()[opOperand->getOperandNumber()];
|
||||
auto indexingMaps =
|
||||
$_op.indexing_maps().template getAsValueRange<AffineMapAttr>();
|
||||
return *(indexingMaps.begin() + opOperand->getOperandNumber());
|
||||
}]
|
||||
>,
|
||||
InterfaceMethod<
|
||||
|
||||
Reference in New Issue
Block a user