This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fold LGE/LGT/LLE/LLT intrinsic functions
ClosedPublic

Authored by klausler on Oct 14 2021, 2:32 PM.

Details

Summary

Fold the legacy intrinsic functions LGE, LGT, LLE, & LLT
by rewriting them into character relational expressions and
then folding those. Also fix folding of comparisons of
character values of distinct lengths: the shorter value must
be padded with blanks. (This fix exposed some bad test cases,
which are also fixed.)

Diff Detail

Event Timeline

klausler created this revision.Oct 14 2021, 2:32 PM
klausler requested review of this revision.Oct 14 2021, 2:32 PM
PeteSteinfeld accepted this revision.Oct 14 2021, 3:06 PM

Things generally look good, and I'm approving.

But Phabricator is treating flang/test/Evaluate/folding05.f90 as a binary file, and I can't figure out how to get the version that's in this patch onto my test machine. As a result, when I run check-flang, I get errors when testing folding05.f90.

This revision is now accepted and ready to land.Oct 14 2021, 3:06 PM
This revision was landed with ongoing or failed builds.Oct 14 2021, 3:24 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptOct 14 2021, 3:24 PM