Also update the documentation of Operation::fold, which did not take into account in-place foldings.
Depends On: D155687
Paths
| Differential D155691
[mlir] Remove some code duplication between `Builders.cpp` and `FoldUtils.cpp` ClosedPublic Authored by springerm on Jul 19 2023, 3:23 AM.
Details Summary Also update the documentation of Operation::fold, which did not take into account in-place foldings. Depends On: D155687
Diff Detail
Event Timelinespringerm added a parent revision: D155687: [mlir][IR] Implement proper folder for `IsCommutative` trait.Jul 19 2023, 3:23 AM mehdi_amini added inline comments.
This revision is now accepted and ready to land.Jul 19 2023, 11:46 AM Closed by commit rG2137915137ac: [mlir] Remove some code duplication between `Builders.cpp` and `FoldUtils.cpp` (authored by springerm). · Explain WhyJul 20 2023, 1:27 AM This revision was automatically updated to reflect the committed changes. springerm marked an inline comment as done.
Revision Contents
Diff 542367 mlir/include/mlir/IR/Operation.h
mlir/lib/IR/Builders.cpp
mlir/lib/IR/Operation.cpp
mlir/lib/Transforms/Utils/FoldUtils.cpp
|
The size of the SmallVector should be unnecessary