[Mlir-commits] [mlir] [mlir][vector] Add more patterns to Vector Linearize transformation (PR #136193)

James Newling llvmlistbot at llvm.org
Wed Apr 23 09:24:12 PDT 2025


================
@@ -27,6 +27,10 @@
 using namespace mlir;
 
 static bool isLessThanTargetBitWidth(Operation *op, unsigned targetBitWidth) {
+  // For BW-0, all operations are legal
+  if (targetBitWidth == 0)
----------------
newling wrote:

Apologies I wasn't clear in this comment. I meant to consolidate use of `targetBitWidth = 0` and `targetBitWidth = 'max'`. Is this a workaround for adding 1 to `std::numeric_limits<unsigned>::max()` ? 

I would like to commit https://github.com/llvm/llvm-project/pull/136581 which would mean this logic doesn't live here anymore and this comment wouldn't be relevant, could you please take a look at that? 

https://github.com/llvm/llvm-project/pull/136193


More information about the Mlir-commits mailing list