[Mlir-commits] [mlir] [mlir][dataflow] Use member initializer list in ProgramPoint class's constructor (PR #173281)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Dec 22 08:27:57 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir
Author: lonely eagle (linuxlonelyeagle)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/173281.diff
1 Files Affected:
- (modified) mlir/include/mlir/Analysis/DataFlowFramework.h (+3-5)
``````````diff
diff --git a/mlir/include/mlir/Analysis/DataFlowFramework.h b/mlir/include/mlir/Analysis/DataFlowFramework.h
index e364570c8b531..efce718dde8a7 100644
--- a/mlir/include/mlir/Analysis/DataFlowFramework.h
+++ b/mlir/include/mlir/Analysis/DataFlowFramework.h
@@ -70,11 +70,9 @@ struct ProgramPoint : public StorageUniquer::BaseStorage {
ProgramPoint() {}
/// Create a new program point from the given program point.
- ProgramPoint(const ProgramPoint &point) {
- this->block = point.getBlock();
- this->point = point.getPoint();
- this->op = point.getOperation();
- }
+ ProgramPoint(const ProgramPoint &point)
+ : block(point.getBlock()), point(point.getPoint()),
+ op(point.getOperation()) {}
static ProgramPoint *construct(StorageUniquer::StorageAllocator &alloc,
KeyTy &&key) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/173281
More information about the Mlir-commits
mailing list