[flang-commits] [PATCH] D134392: [flang] Prevent a bad folding rewrite

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Wed Sep 21 15:25:37 PDT 2022


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

When a subexpression does not have both constant elements and
a constant shape, folding is rewriting it into a vector of its
elements.  This is of course wrong when the shape shows that
the result has rank greater than 1.


https://reviews.llvm.org/D134392

Files:
  flang/lib/Evaluate/fold-implementation.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134392.462024.patch
Type: text/x-patch
Size: 5310 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220921/67255b26/attachment.bin>


More information about the flang-commits mailing list