[Mlir-commits] [mlir] 67b217a - [MLIR] Apply clang-tidy fixes for readability-container-size-empty in SCFToGPU.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Wed Jan 28 02:46:23 PST 2026
Author: Mehdi Amini
Date: 2026-01-28T02:44:57-08:00
New Revision: 67b217ae6c913ed3da50fd4610cb69d97991fde0
URL: https://github.com/llvm/llvm-project/commit/67b217ae6c913ed3da50fd4610cb69d97991fde0
DIFF: https://github.com/llvm/llvm-project/commit/67b217ae6c913ed3da50fd4610cb69d97991fde0.diff
LOG: [MLIR] Apply clang-tidy fixes for readability-container-size-empty in SCFToGPU.cpp (NFC)
Added:
Modified:
mlir/lib/Conversion/SCFToGPU/SCFToGPU.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Conversion/SCFToGPU/SCFToGPU.cpp b/mlir/lib/Conversion/SCFToGPU/SCFToGPU.cpp
index 36a93d60e0882..93e1e3f86279a 100644
--- a/mlir/lib/Conversion/SCFToGPU/SCFToGPU.cpp
+++ b/mlir/lib/Conversion/SCFToGPU/SCFToGPU.cpp
@@ -705,7 +705,7 @@ ParallelToGpuLaunchLowering::matchAndRewrite(ParallelOp parallelOp,
// Ensure reduction region is isolated from above.
llvm::SetVector<Value> externalValues;
getUsedValuesDefinedAbove(reduceOp.getRegion(0), externalValues);
- if (externalValues.size())
+ if (!externalValues.empty())
return failure();
// Replace by gpu.all_reduce.
auto gpuRedOp = gpu::AllReduceOp::create(rewriter, loc, newValue);
More information about the Mlir-commits
mailing list