[Mlir-commits] [mlir] [mlir][vector] Propagate `vector.extract` through elementwise ops (PR #131462)
Andrzej WarzyĆski
llvmlistbot at llvm.org
Sun Mar 23 04:56:36 PDT 2025
================
@@ -1043,6 +1043,63 @@ struct ReorderElementwiseOpsOnBroadcast final
}
};
+/// Pattern to rewrite a ExtractOp(Elementwise) -> Elementwise(ExtractOp).
+/// This may result in cleaner code when we extracting a single value
----------------
banach-space wrote:
[nit]
```suggestion
/// This may result in cleaner code when extracting a single value
```
https://github.com/llvm/llvm-project/pull/131462
More information about the Mlir-commits
mailing list