[Mlir-commits] [mlir] Flag to guard MoveInitOperandsToInput in LinalgFoldUnitExtendDimsPass (PR #157941)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Sep 18 13:53:59 PDT 2025
sdalvi-quic wrote:
Hi @MaheshRavishankar, I might have misunderstood your comment.
This PR adds an option to guard the MoveInitOperandsToInput pattern in the LinalgFoldUnitExtentDimsPass. The reason for this is that the pattern attempts to canonicalize element-wise ops thereby reverting any optimization, which has led to performance regressions in some cases.
By introducing this option, we gain flexibility to enable or disable the pattern depending on the use case. I’ve added more context in the PR description.
> What happened here. Now I just see the changes to add a pass option...
https://github.com/llvm/llvm-project/pull/157941
More information about the Mlir-commits
mailing list