This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Elide large elements attrs when printing Operations in diagnostics
ClosedPublic

Authored by rriddle on May 11 2021, 12:41 PM.

Details

Summary

Diagnostics are intended to be read by users, and in most cases displayed in a terminal. When not eliding huge element attributes, in some cases we end up dumping hundreds of megabytes(gigabytes) to the terminal (or logs), completely obfuscating the main diagnostic being shown.

Diff Detail

Event Timeline

rriddle created this revision.May 11 2021, 12:41 PM
rriddle requested review of this revision.May 11 2021, 12:41 PM
jpienaar accepted this revision.May 11 2021, 12:45 PM
This revision is now accepted and ready to land.May 11 2021, 12:45 PM
mehdi_amini accepted this revision.May 11 2021, 12:50 PM