[Mlir-commits] [mlir] f04a123 - [mlir][X86Vector] Fix unused variable warning

Benjamin Kramer llvmlistbot at llvm.org
Thu Nov 11 04:19:01 PST 2021


Author: Benjamin Kramer
Date: 2021-11-11T13:18:19+01:00
New Revision: f04a1237bada4640608f03034512159753250609

URL: https://github.com/llvm/llvm-project/commit/f04a1237bada4640608f03034512159753250609
DIFF: https://github.com/llvm/llvm-project/commit/f04a1237bada4640608f03034512159753250609.diff

LOG: [mlir][X86Vector] Fix unused variable warning

Added: 
    

Modified: 
    mlir/lib/Dialect/X86Vector/Transforms/AVXTranspose.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/X86Vector/Transforms/AVXTranspose.cpp b/mlir/lib/Dialect/X86Vector/Transforms/AVXTranspose.cpp
index 50c2df3aba77..981413b160d3 100644
--- a/mlir/lib/Dialect/X86Vector/Transforms/AVXTranspose.cpp
+++ b/mlir/lib/Dialect/X86Vector/Transforms/AVXTranspose.cpp
@@ -78,8 +78,8 @@ Value mlir::x86vector::avx2::mm256Permute2f128Ps(ImplicitLocOpBuilder &b,
 /// AVX2 4x8xf32-specific transpose lowering using a "C intrinsics" model.
 void mlir::x86vector::avx2::transpose4x8xf32(ImplicitLocOpBuilder &ib,
                                              MutableArrayRef<Value> vs) {
-  auto vt = VectorType::get({8}, Float32Type::get(ib.getContext()));
 #ifndef NDEBUG
+  auto vt = VectorType::get({8}, Float32Type::get(ib.getContext()));
   assert(vs.size() == 4 && "expects 4 vectors");
   assert(llvm::all_of(ValueRange{vs}.getTypes(),
                       [&](Type t) { return t == vt; }) &&


        


More information about the Mlir-commits mailing list