[flang-commits] [PATCH] D134466: [flang] Fold IS_CONTIGUOUS() to .FALSE. when it is known to be

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Thu Sep 22 12:03:22 PDT 2022


klausler created this revision.
klausler added a reviewer: clementval.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a project: All.
klausler requested review of this revision.

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.


https://reviews.llvm.org/D134466

Files:
  flang/include/flang/Evaluate/check-expression.h
  flang/include/flang/Evaluate/variable.h
  flang/lib/Evaluate/check-expression.cpp
  flang/lib/Evaluate/fold-logical.cpp
  flang/lib/Evaluate/variable.cpp
  flang/test/Semantics/assign03.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134466.462257.patch
Type: text/x-patch
Size: 10105 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220922/3a74643b/attachment.bin>


More information about the flang-commits mailing list