This is an archive of the discontinued LLVM Phabricator instance.

[flang] Speed up folding of LEN_TRIM()
ClosedPublic

Authored by klausler on Oct 27 2022, 4:35 PM.

Details

Summary

LEN_TRIM's folding is currently based on VERIFY(), and it is kind of
slow for the very large CHARACTER arguments that can show up in artificial
test suites. Rewrite in terms of single-character accesses.

Diff Detail

Event Timeline

klausler created this revision.Oct 27 2022, 4:35 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 27 2022, 4:35 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Oct 27 2022, 4:35 PM
jeanPerier accepted this revision.Oct 28 2022, 12:13 AM
This revision is now accepted and ready to land.Oct 28 2022, 12:13 AM
This revision was automatically updated to reflect the committed changes.