This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fold IS_CONTIGUOUS() to .FALSE. when it is known to be
ClosedPublic

Authored by klausler on Sep 22 2022, 12:03 PM.

Details

Summary

At present, IS_CONTIGUOUS() can only either fold to .TRUE. or
remain unknown. The underlying analysis, however, is capable
of returning a tri-state result (true, false, or unknown).
Extend and expose it to folding so that IS_CONTIGUOUS() can
fold to .FALSE. as well as to .TRUE. when contiguity is
known.

Diff Detail

Event Timeline

klausler created this revision.Sep 22 2022, 12:03 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 22 2022, 12:03 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Sep 22 2022, 12:03 PM
This revision is now accepted and ready to land.Sep 22 2022, 12:33 PM