Skip to content

Commit

Permalink
Update compiler/plugins/target/AMD-AIE/iree-amd-aie/Transforms/AMDAIE…
Browse files Browse the repository at this point in the history
…FuseFillIntoForall.cpp

Co-authored-by: Vivian <[email protected]>
  • Loading branch information
newling and yzhang93 authored Dec 10, 2024
1 parent 5845c95 commit 6b856b1
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ void AMDAIEFuseFillIntoForallPass::runOnOperation() {
// fill at the beginning of the forall body.
assert(!extractSliceOp);
rewriter.setInsertionPointToStart(forallOp.getBody());
Value scalar = fillOp.value();
Location loc = fillOp.getLoc();
auto fusedFill = rewriter.create<linalg::FillOp>(loc, scalar, bbArg);
auto fusedFill = rewriter.create<linalg::FillOp>(fillOp.getLoc(), fillOp.value(), bbArg);
rewriter.replaceUsesWithIf(
bbArg, fusedFill.getResult(0), [&](OpOperand &operand) {
Operation *owner = operand.getOwner();
Expand Down

0 comments on commit 6b856b1

Please sign in to comment.