[Mlir-commits] [mlir] [MLIR][XeGPU] Consider alignment in dpas sg_layout creation (PR #181141)
Igor Zamyatin
llvmlistbot at llvm.org
Fri Feb 13 07:43:40 PST 2026
================
@@ -999,15 +999,15 @@ xegpu::setupDpasLayout(xegpu::LayoutKind layoutKind, VectorType aTy,
llvm::DenseSet<LayoutRepresentation> setCD(layoutsCD.begin(),
layoutsCD.end());
std::optional<LayoutRepresentation> bestPick;
- auto checkSgDataAB = [&](LayoutRepresentation sgLayout) {
+ auto checkAlignedSgDataAB = [&](LayoutRepresentation sgLayout) {
return aTy.getShape().back() / sgLayout.second ==
bTy.getShape().front() / sgLayout.first;
};
for (auto &sgLayout : layoutsB) {
if (setA.contains(sgLayout) && setCD.contains(sgLayout)) {
- // Is in (A and B and CD) and matches consumer -> best pick
- if (!checkSgDataAB(sgLayout))
+ if (!checkAlignedSgDataAB(sgLayout))
----------------
Garra1980 wrote:
can you please also add short explanation comment here?
https://github.com/llvm/llvm-project/pull/181141
More information about the Mlir-commits
mailing list