It is surprising for the user that only some fields were honored.
Also make the FrozenRewritePatternSet a shared_ptr<const T>.
Fixes #64543
Paths
| Differential D157469
Fix canonicalizer to copy the entire GreedyRewriteConfig instead of selected fields ClosedPublic Authored by mehdi_amini on Aug 8 2023, 7:03 PM.
Details Summary It is surprising for the user that only some fields were honored. Also make the FrozenRewritePatternSet a shared_ptr<const T>. Fixes #64543
Diff Detail
Event Timeline
This revision is now accepted and ready to land.Aug 9 2023, 1:29 PM This revision was landed with ongoing or failed builds.Aug 9 2023, 7:59 PM Closed by commit rGe468c60c96e1: Fix canonicalizer to copy the entire GreedyRewriteConfig instead of selected… (authored by mehdi_amini). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 548856 mlir/include/mlir/IR/OpImplementation.h
mlir/lib/Transforms/Canonicalizer.cpp
|
Isn't this equal to the deault generated copy constructor and can therefore be omitted entirely? This violates the rule of 5 otherwise (although unlikely to matter in our case).