diff options
Diffstat (limited to 'mlir/lib/Transforms/LoopTiling.cpp')
-rw-r--r-- | mlir/lib/Transforms/LoopTiling.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Transforms/LoopTiling.cpp b/mlir/lib/Transforms/LoopTiling.cpp index d3dc81760fc..8755b459b51 100644 --- a/mlir/lib/Transforms/LoopTiling.cpp +++ b/mlir/lib/Transforms/LoopTiling.cpp @@ -241,7 +241,7 @@ LogicalResult mlir::tileCodeGen(MutableArrayRef<AffineForOp> band, constructTiledIndexSetHyperRect(origLoops, newLoops, tileSizes); // In this case, the point loop IVs just replace the original ones. for (unsigned i = 0; i < width; i++) { - origLoopIVs[i]->replaceAllUsesWith(newLoops[i + width].getInductionVar()); + origLoopIVs[i].replaceAllUsesWith(newLoops[i + width].getInductionVar()); } // Erase the old loop nest. |