Skip to content

Commit

Permalink
Erase InsertSliceOp when converting to stream
Browse files Browse the repository at this point in the history
  • Loading branch information
hanchenye committed Feb 20, 2024
1 parent 3f9391d commit efd7f0e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Dialect/HLS/TransformOps/HLSTransformOps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ transform::HLSConvertInsertSliceToStreamOp::applyToOne(
rewriter.getUnknownLoc(), tensorToReplace.getType(), channel);

rewriter.replaceAllUsesWith(tensorToReplace, channelTensor);
rewriter.replaceOp(insertSlice, insertSlice.getDest());
results.push_back(channel);
results.push_back(channelWrite);
results.push_back(channelTensor);
Expand Down

0 comments on commit efd7f0e

Please sign in to comment.