[Mlir-commits] [mlir] 8ca90b2 - [mlir] Remove unused variable 'byteBitwidth' in VectorEmulateNarrowType.cpp (NFC)

Jie Fu llvmlistbot at llvm.org
Mon Jan 29 18:07:18 PST 2024


Author: Jie Fu
Date: 2024-01-30T10:06:40+08:00
New Revision: 8ca90b29eed7836e122382a603bc0a06ca82ebc8

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

LOG: [mlir] Remove unused variable 'byteBitwidth' in VectorEmulateNarrowType.cpp (NFC)

llvm-project/mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp:763:12:
error: unused variable 'byteBitwidth' [-Werror,-Wunused-variable]
  unsigned byteBitwidth = 8;
           ^
1 error generated.

Added: 
    

Modified: 
    mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp b/mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp
index 8abd34fd24622..0110a8df89aee 100644
--- a/mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp
+++ b/mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp
@@ -760,7 +760,6 @@ static LogicalResult alignedConversionPrecondition(PatternRewriter &rewriter,
     return rewriter.notifyMatchFailure(op, "Not a supported aligned case");
   unsigned srcElemBitwidth = srcType.getElementTypeBitWidth();
   unsigned dstElemBitwidth = dstType.getElementTypeBitWidth();
-  unsigned byteBitwidth = 8;
 
   // Only {s}i4 -> (size_of({{s}i/f}) >= 8) are supported for now.
   if (srcElemBitwidth != 4 || dstElemBitwidth < 8 ||


        


More information about the Mlir-commits mailing list