[flang-commits] [PATCH] D135334: [flang] Correct epistemological edge cases for IS_CONTIGUOUS folding

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Wed Oct 5 17:24:10 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.

Don't return a hard .FALSE. when folding IS_CONTIGUOUS() unless the
subscript triplets are discontiguous and array section is nonempty,
or if the array section is nonempty and there is a vector subscript.


https://reviews.llvm.org/D135334

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135334.465615.patch
Type: text/x-patch
Size: 6625 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20221006/401e99f7/attachment.bin>


More information about the flang-commits mailing list