[all-commits] [llvm/llvm-project] ed71a0: [flang] When folding FINDLOC, convert operands to ...
Peter Klausler via All-commits
all-commits at lists.llvm.org
Sat Jun 4 09:55:30 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ed71a0b45b6c927333fa2c91e16f75a251408691
https://github.com/llvm/llvm-project/commit/ed71a0b45b6c927333fa2c91e16f75a251408691
Author: Peter Klausler <pklausler at nvidia.com>
Date: 2022-06-04 (Sat, 04 Jun 2022)
Changed paths:
M flang/include/flang/Evaluate/type.h
M flang/lib/Evaluate/fold-integer.cpp
M flang/lib/Evaluate/type.cpp
Log Message:
-----------
[flang] When folding FINDLOC, convert operands to a common type
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.
Differential Revision: https://reviews.llvm.org/D127030
More information about the All-commits
mailing list