[Mlir-commits] [mlir] [mlir][scf] Considering affine.apply when fusing scf::ParallelOp (PR #80145)
Hsiangkai Wang
llvmlistbot at llvm.org
Wed Jan 31 15:44:50 PST 2024
================
@@ -102,8 +114,25 @@ static bool haveNoReadsAfterWriteExceptSameIndex(
return WalkResult::interrupt();
for (int i = 0, e = storeIndices.size(); i < e; ++i) {
if (firstToSecondPloopIndices.lookupOrDefault(storeIndices[i]) !=
- loadIndices[i])
- return WalkResult::interrupt();
+ loadIndices[i]) {
+ auto storeIndexDef = storeIndices[i].getDefiningOp<AffineApplyOp>();
----------------
Hsiangkai wrote:
Thanks for your review. I have updated it using `OperationEquivalence::isEquivalentTo`.
https://github.com/llvm/llvm-project/pull/80145
More information about the Mlir-commits
mailing list