[llvm] [Matrix][InstCombine] Collapse inverse Transposes (PR #224172)

Adam Nemet via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 17 10:46:24 PDT 2026


anemet wrote:

I think that this will cause perf regressions.  Currently we fold away transpose of transpose in LowerMatrixIntrinsics (optimizeTransposes) but before we do that we propagate the matrix shapes.  If we do this earlier we would lack the shape info in LMI.  I think the plan was to create a new intrinsic or metadata to assert the shape but until we have that we will lose information by folding these away early.

Why is folding these away in the LMI sufficient for you?

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


More information about the llvm-commits mailing list