Skip to content

Commit

Permalink
LLVMCPU reduction tiling rebase conflict fix
Browse files Browse the repository at this point in the history
Co-authored-by: Max Dawkins <[email protected]>
  • Loading branch information
2 people authored and github-actions[bot] committed Oct 24, 2023
1 parent 75bcab7 commit bda91e8
Showing 1 changed file with 11 additions and 22 deletions.
33 changes: 11 additions & 22 deletions compiler/src/iree/compiler/Codegen/LLVMCPU/Passes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,30 +222,19 @@ LogicalResult verifyDoubleTilingExpertPassPipelineConfig(
}
}

SmallVector<int64_t> thirdLevelTileSizes;
std::tie(thirdLevelTileSizes, std::ignore) =
tilingConfig.getVectorReductionSizes();
for (auto [index, tileSize] : llvm::enumerate(thirdLevelTileSizes)) {
if (tileSize != 0 && pLoopsSet.contains(index)) {
return op->emitOpError(
"expected only reduction dims to be set in the third tiling "
"level, got ")
<< index << "-th tile size set";
if (!clEnableQuantizedMatmulReassociation) {
SmallVector<int64_t> thirdLevelTileSizes;
std::tie(thirdLevelTileSizes, std::ignore) =
tilingConfig.getVectorReductionSizes();
for (auto [index, tileSize] : llvm::enumerate(thirdLevelTileSizes)) {
if (tileSize != 0 && pLoopsSet.contains(index)) {
return op->emitOpError("expected only reduction dims to be set in "
"the third tiling "
"level, got ")
<< index << "-th tile size set";
}
}
}
// if (!clEnableQuantizedMatmulReassociation) {
// SmallVector<int64_t> thirdLevelTileSizes;
// std::tie(thirdLevelTileSizes, std::ignore) =
// tilingConfig.getVectorReductionSizes();
// for (auto [index, tileSize] : llvm::enumerate(thirdLevelTileSizes)) {
// if (tileSize != 0 && pLoopsSet.contains(index)) {
// return op->emitOpError("expected only reduction dims to be set in "
// "the third tiling "
// "level, got ")
// << index << "-th tile size set";
// }
// }
// }
}

// Verify interchange
Expand Down

0 comments on commit bda91e8

Please sign in to comment.