This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Reduce call stack depth in LogicalResult. NFC.
ClosedPublic

Authored by kuhar on Oct 3 2022, 3:55 PM.

Details

Summary

When debuging a crash or conversion failure in a deep pass pipeline,
there are often many interleaved frames with failed and succeeded.
LogicalResult is used through the pass infrastructure, so by not implementing
failure in terms of a call to succeess, this patch noticeably reduces the total
total call stack depth and improves the debugging experience.

Diff Detail

Event Timeline

kuhar created this revision.Oct 3 2022, 3:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 3 2022, 3:55 PM
kuhar requested review of this revision.Oct 3 2022, 3:55 PM
rriddle accepted this revision.Oct 3 2022, 3:56 PM
This revision is now accepted and ready to land.Oct 3 2022, 3:56 PM
This revision was automatically updated to reflect the committed changes.