[flang-commits] [PATCH] D127030: [flang] When folding FINDLOC, convert operands to a common type

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Fri Jun 3 16:08:48 PDT 2022


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

For example, FINDLOC(A,X) should convert both A and X to COMPLEX(8)
if the operands are REAL(8) and COMPLEX(4), so that comparisons
can be done without losing inforation.  The current implementation
unconditionally converts X to the type of the array A.


https://reviews.llvm.org/D127030

Files:
  flang/include/flang/Evaluate/type.h
  flang/lib/Evaluate/fold-integer.cpp
  flang/lib/Evaluate/type.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127030.434189.patch
Type: text/x-patch
Size: 3360 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220603/63e35aa7/attachment.bin>


More information about the flang-commits mailing list