Apply clang-tidy fixes for performance-for-range-copy in ElementwiseOpFusion.cpp (NFC)

This commit is contained in:
Mehdi Amini 2022-01-08 21:26:54 +00:00
parent 0c9d59e56a
commit ba19fa5779
1 changed files with 2 additions and 1 deletions

View File

@ -610,7 +610,8 @@ LogicalResult isGenericOpExpandable(GenericOp genericOp,
PatternRewriter &rewriter) {
// Current reshape only supports expansion of a dynamic dim when only one of
// the expanded dims are dynamic.
for (auto originalShape : llvm::enumerate(expansionInfo.getOriginalShape()))
for (const auto &originalShape :
llvm::enumerate(expansionInfo.getOriginalShape()))
if (ShapedType::isDynamic(originalShape.value())) {
// All but one of the expanded dims must be static.
bool foundDynamicExpandedDim = false;