[Mlir-commits] [mlir] f1321b0 - Apply clang-tidy fixes for llvm-qualified-auto in ElementwiseOpFusion.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Thu Dec 15 09:23:35 PST 2022
Author: Mehdi Amini
Date: 2022-12-15T17:21:53Z
New Revision: f1321b0ab89b5df134a0aa9ebdfb6038f8026c72
URL: https://github.com/llvm/llvm-project/commit/f1321b0ab89b5df134a0aa9ebdfb6038f8026c72
DIFF: https://github.com/llvm/llvm-project/commit/f1321b0ab89b5df134a0aa9ebdfb6038f8026c72.diff
LOG: Apply clang-tidy fixes for llvm-qualified-auto in ElementwiseOpFusion.cpp (NFC)
Added:
Modified:
mlir/lib/Dialect/Linalg/Transforms/ElementwiseOpFusion.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Linalg/Transforms/ElementwiseOpFusion.cpp b/mlir/lib/Dialect/Linalg/Transforms/ElementwiseOpFusion.cpp
index d4c08875ccef..1f8d7af7e39c 100644
--- a/mlir/lib/Dialect/Linalg/Transforms/ElementwiseOpFusion.cpp
+++ b/mlir/lib/Dialect/Linalg/Transforms/ElementwiseOpFusion.cpp
@@ -283,7 +283,7 @@ mlir::linalg::fuseElementwiseOps(RewriterBase &rewriter,
/// Find the results of the producer that have uses outside of the consumer.
llvm::SmallDenseSet<int> preservedProducerResults;
for (const auto &producerResult : llvm::enumerate(producer->getResults())) {
- auto outputOperand = producer.getDpsInitOperand(producerResult.index());
+ auto *outputOperand = producer.getDpsInitOperand(producerResult.index());
if (producer.payloadUsesValueFromOperand(outputOperand) ||
!producer.canOpOperandsBeDropped(outputOperand) ||
llvm::any_of(producerResult.value().getUsers(), [&](Operation *user) {
More information about the Mlir-commits
mailing list