[Mlir-commits] [mlir] [mlir][vector] Add pattern for dropping unit dims from for loops (PR #109585)
    Andrzej WarzyĆski 
    llvmlistbot at llvm.org
       
    Mon Sep 23 12:28:41 PDT 2024
    
    
  
================
@@ -207,3 +207,78 @@ func.func @negative_transpose_with_no_unit_dims(%vec: vector<4x2x3xf32>) -> vect
 
 // CHECK-LABEL: func.func @negative_transpose_with_no_unit_dims
 // CHECK-NOT: vector.shape_cast
+
+// -----
+
+///----------------------------------------------------------------------------------------
+/// [Pattern: DropUnitDimsFromScfForOp]
+///----------------------------------------------------------------------------------------
----------------
banach-space wrote:
Could you add a negative tests? The most obvious one that comes to mind would be one with `[1]` (i.e. scalable unit dim).
https://github.com/llvm/llvm-project/pull/109585
    
    
More information about the Mlir-commits
mailing list