This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Parser][NFC] Remove several usages of getEncodedSourceLocation
ClosedPublic

Authored by rriddle on Feb 13 2020, 6:59 PM.

Details

Summary

getEncodedSourceLocation can be very costly to compute, especially if the input line becomes very long. This revision inlines some of the verification of a few getChecked methods to avoid the materialization of an encoded source location.

Diff Detail

Event Timeline

rriddle created this revision.Feb 13 2020, 6:59 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 13 2020, 6:59 PM
mehdi_amini accepted this revision.Feb 13 2020, 7:53 PM
This revision is now accepted and ready to land.Feb 13 2020, 7:53 PM
This revision was automatically updated to reflect the committed changes.