This is an archive of the discontinued LLVM Phabricator instance.

[flang] Remove some needless operations in expr rewriting
ClosedPublic

Authored by klausler on Jan 21 2021, 2:41 PM.

Details

Summary

Expressions emitted to module files and error messages
sometimes contain conversions of integer results of inquiry
intrinsics; these are usually not needed, and can conflict
with "int" in the user's namespace. Improve folding so that
these conversions don't appear, and do some other clean-up
in adjacent code.

Diff Detail

Event Timeline

klausler created this revision.Jan 21 2021, 2:41 PM
klausler requested review of this revision.Jan 21 2021, 2:41 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 21 2021, 2:41 PM
PeteSteinfeld accepted this revision.Jan 21 2021, 6:20 PM

All builds, tests, and looks good.

This revision is now accepted and ready to land.Jan 21 2021, 6:20 PM