Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2028,7 +2028,7 @@ struct LoadOpToBlockIOConversion
Value other = op.getOther();
Value llOther = adaptor.getOther();
DenseElementsAttr constAttr;
if (other)
if (other) {
if (matchPattern(other, m_Constant(&constAttr)) && constAttr.isSplat()) {
Type elemTy = constAttr.getElementType();
auto handleSplatValue = [&](auto splatVal) {
Expand All @@ -2049,6 +2049,7 @@ struct LoadOpToBlockIOConversion
} else {
otherElems = unpackLLElements(loc, llOther, rewriter);
}
}

// re-arrange the ptrs and masks to for large 2D block IO.
// Layout is unrelated to the scalar type.
Expand Down Expand Up @@ -2562,7 +2563,7 @@ struct LoadOpToBlockIOConversion
SmallVector<Value> otherElems;
Value llOther = adaptor.getOther();
DenseElementsAttr constAttr;
if (other)
if (other) {
if (matchPattern(other, m_Constant(&constAttr)) && constAttr.isSplat()) {
Type elemTy = constAttr.getElementType();
auto handleSplatValue = [&](auto splatVal) {
Expand All @@ -2583,6 +2584,7 @@ struct LoadOpToBlockIOConversion
} else {
otherElems = unpackLLElements(loc, llOther, rewriter);
}
}

unsigned threadsPerWarp =
TritonGPUDialect::getThreadsPerWarp(op->getParentOfType<ModuleOp>());
Expand Down
Loading