[Mlir-commits] [mlir] Add Broadcast -> CastOp reordering to SinkVectorBroadcasting patterns. (PR #68257)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Oct 4 13:53:40 PDT 2023
https://github.com/MaheshRavishankar created https://github.com/llvm/llvm-project/pull/68257
None
>From 2605dea6b30fd6d56dfc86d720889316cabcc5fc Mon Sep 17 00:00:00 2001
From: MaheshRavishankar <mahesh at nod-labs.com>
Date: Tue, 3 Oct 2023 20:04:41 -0700
Subject: [PATCH] Add Broadcast -> CastOp reordering to SinkVectorBroadcasting
patterns.
---
mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp b/mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp
index 77076090f354e6b..777a42de25b66dc 100644
--- a/mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp
+++ b/mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp
@@ -1447,8 +1447,8 @@ void mlir::vector::
void mlir::vector::populateSinkVectorBroadcastPatterns(
RewritePatternSet &patterns, PatternBenefit benefit) {
- patterns.add<ReorderElementwiseOpsOnBroadcast>(patterns.getContext(),
- benefit);
+ patterns.add<ReorderCastOpsOnBroadcast, ReorderElementwiseOpsOnBroadcast>(
+ patterns.getContext(), benefit);
}
//===----------------------------------------------------------------------===//
More information about the Mlir-commits
mailing list