This is an archive of the discontinued LLVM Phabricator instance.

Cleanup uses of getAttrDictionary() in MLIR to use getDiscardableAttrDictionary() when possible
ClosedPublic

Authored by mehdi_amini on May 14 2023, 11:22 PM.

Details

Diff Detail

Event Timeline

mehdi_amini created this revision.May 14 2023, 11:22 PM
mehdi_amini requested review of this revision.May 14 2023, 11:22 PM
mehdi_amini edited the summary of this revision. (Show Details)May 14 2023, 11:27 PM
rriddle accepted this revision.May 14 2023, 11:46 PM
rriddle added inline comments.
mlir/lib/Dialect/Func/Transforms/DuplicateFunctionElimination.cpp
57–58 ↗(On Diff #522056)

Why commented out? Can we remove dead code?

This revision is now accepted and ready to land.May 14 2023, 11:46 PM
antiagainst accepted this revision.May 15 2023, 10:18 AM
mehdi_amini added inline comments.May 15 2023, 11:00 AM
mlir/lib/Dialect/Func/Transforms/DuplicateFunctionElimination.cpp
57–58 ↗(On Diff #522056)

Actually this is a lingering bug, thanks for noticing I had forgotten.

We can't implement a "compare these properties equals BUT for one field" generically. Luckily this isn't a generic method!

I'll remove the change in this file and sending it in a separate review.

mehdi_amini edited the summary of this revision. (Show Details)

Remove changes to DuplicateFunctionElimination.cpp

This revision was landed with ongoing or failed builds.May 15 2023, 11:36 AM
This revision was automatically updated to reflect the committed changes.

Thanks for the fast action on this, @mehdi_amini! This solves my performance problem, and flang builds correctly and passes all of the lit tests.