[Mlir-commits] [mlir] [mlir][Vector] Refactor VectorEmulateNarrowType.cpp (PR #123529)

Alan Li llvmlistbot at llvm.org
Mon Mar 10 09:55:35 PDT 2025


================
@@ -1127,7 +1159,8 @@ struct ConvertVectorTransferRead final
     auto origElements = op.getVectorType().getNumElements();
 
     // Note, per-element-alignment was already verified above.
-    bool isFullyAligned = origElements % emulatedPerContainerElem == 0;
+    bool isFullyAligned =
----------------
lialan wrote:

Naming is indeed hard! I asked my AI and I got `isDivisibleInSize` out from a bunch of suggestions. :-)

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


More information about the Mlir-commits mailing list