Skip to content

Commit

Permalink
found asan issue
Browse files Browse the repository at this point in the history
  • Loading branch information
zero9178 committed Aug 26, 2024
1 parent 5744ed9 commit 8303280
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions codegen/compiler/src/Quidditch/Target/TensorTile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,16 +132,16 @@ applyTileAndFuseToEachRoot(RewriterBase &rewriter,

rewriter.setInsertionPoint(tilingInterfaceOp);

auto loweringConfig =
getLoweringConfig<quidditch::Snitch::LoweringConfigAttr>(
tilingInterfaceOp);
scf::SCFTilingOptions tilingOptions;
switch (tilingLevel) {
case TilingLevel::Thread:
tilingOptions.setTileSizeComputationFunction(threadTileSizeComputation);
tilingOptions.setLoopType(scf::SCFTilingOptions::LoopType::ForallOp);
break;
case TilingLevel::L1:
auto loweringConfig =
getLoweringConfig<quidditch::Snitch::LoweringConfigAttr>(
tilingInterfaceOp);
tilingOptions.setTileSizeComputationFunction(
[&](OpBuilder &builder, auto &&...) {
SmallVector<OpFoldResult> result;
Expand Down

0 comments on commit 8303280

Please sign in to comment.