This is an archive of the discontinued LLVM Phabricator instance.

[mlir][StorageUniquer] Replace all usages of std::function with function_ref.
ClosedPublic

Authored by rriddle on Apr 11 2020, 6:38 PM.

Details

Summary

std::function has a notoriously large amount of malloc traffic, whereas function_ref is a cheaper and more efficient alternative.

Diff Detail

Event Timeline

rriddle created this revision.Apr 11 2020, 6:38 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 11 2020, 6:38 PM
mehdi_amini accepted this revision.Apr 11 2020, 8:29 PM
This revision is now accepted and ready to land.Apr 11 2020, 8:29 PM
lattner accepted this revision.Apr 11 2020, 9:42 PM

awesome, thank you!

This revision was automatically updated to reflect the committed changes.