[Mlir-commits] [mlir] fdff641 - [MLIR] Fix -Wunused-variable (#192698)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Apr 17 09:53:49 PDT 2026
Author: Aiden Grossman
Date: 2026-04-17T09:53:44-07:00
New Revision: fdff641f760d529c9484ecdd48b00d07d203f9a7
URL: https://github.com/llvm/llvm-project/commit/fdff641f760d529c9484ecdd48b00d07d203f9a7
DIFF: https://github.com/llvm/llvm-project/commit/fdff641f760d529c9484ecdd48b00d07d203f9a7.diff
LOG: [MLIR] Fix -Wunused-variable (#192698)
Inline the variable given the call does not have side effects and the
variable name does not add any clarity.
Added:
Modified:
mlir/lib/Dialect/Vector/IR/VectorOps.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Vector/IR/VectorOps.cpp b/mlir/lib/Dialect/Vector/IR/VectorOps.cpp
index 2ae9491f7c15f..8d8658ddda33d 100644
--- a/mlir/lib/Dialect/Vector/IR/VectorOps.cpp
+++ b/mlir/lib/Dialect/Vector/IR/VectorOps.cpp
@@ -3453,9 +3453,8 @@ static OpFoldResult foldShuffleConstantInputs(ShuffleOp op, Attribute v1Attr,
OpFoldResult vector::ShuffleOp::fold(FoldAdaptor adaptor) {
auto v1Type = getV1VectorType();
- auto v2Type = getV2VectorType();
- assert(!v1Type.isScalable() && !v2Type.isScalable() &&
+ assert(!v1Type.isScalable() && !getV2VectorType.isScalable() &&
"Vector shuffle does not support scalable vectors");
// For consistency: 0-D shuffle return type is 1-D, this cannot be a folding
More information about the Mlir-commits
mailing list