This is an archive of the discontinued LLVM Phabricator instance.

[flang] Improve shape & length characterization
ClosedPublic

Authored by klausler on Jan 30 2021, 10:15 AM.

Details

Summary

Analyze the shape of the result of TRANSFER(ptr,array) correctly
when "ptr" is an array of deferred shape. Fixing this bug led to
some refactoring and concentration of common code in TypeAndShape
member functions with code in general shape and character length
analysis, and this led to some regression test failures that have
all been cleaned up.

Diff Detail

Event Timeline

klausler created this revision.Jan 30 2021, 10:15 AM
klausler requested review of this revision.Jan 30 2021, 10:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 30 2021, 10:15 AM
PeteSteinfeld accepted this revision.Jan 30 2021, 12:34 PM

All builds, tests, and looks good.

flang/include/flang/Evaluate/tools.h
336

I think that this might win the prize for the longest name in the compiler!

This revision is now accepted and ready to land.Jan 30 2021, 12:34 PM
This revision was automatically updated to reflect the committed changes.