[Mlir-commits] [mlir] [AMDGPU] Add parameterization for optimized shared memory variables (PR #82508)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Feb 27 17:24:32 PST 2024
================
@@ -273,13 +262,14 @@ struct OptimizeSharedMemoryPass
shmAllocOps.push_back(allocOp);
});
for (auto allocOp : shmAllocOps) {
- if (failed(optimizeSharedMemoryReadsAndWrites(getOperation(),
- allocOp.getMemref())))
+ if (failed(optimizeSharedMemoryReadsAndWrites(op, allocOp.getMemref(),
+ kSharedMemoryLineSizeBytes,
+ kDefaultVectorSizeBits)))
return;
}
}
private:
- int64_t _kSharedMemoryLineSizeBytes;
- int64_t _kDefaultVectorSizeBits;
+ int64_t kSharedMemoryLineSizeBytes;
+ int64_t kDefaultVectorSizeBits;
----------------
erman-gurses wrote:
Thanks for the feedback.
https://github.com/llvm/llvm-project/pull/82508
More information about the Mlir-commits
mailing list