[all-commits] [llvm/llvm-project] 6fa535: [flang] Fix folding of CMPLX
Peter Klausler via All-commits
all-commits at lists.llvm.org
Thu Jun 3 13:11:52 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6fa5353a5696bf8c4c2689126a025330c72aa8f9
https://github.com/llvm/llvm-project/commit/6fa5353a5696bf8c4c2689126a025330c72aa8f9
Author: peter klausler <pklausler at nvidia.com>
Date: 2021-06-03 (Thu, 03 Jun 2021)
Changed paths:
M flang/lib/Evaluate/fold-complex.cpp
Log Message:
-----------
[flang] Fix folding of CMPLX
The code for folding calls to the intrinsic function CMPLX was
incorrectly dependent on the number of arguments to distinguish its
two cases (conversion from one kind of complex to another, and
composition of a complex value from real & imaginary parts).
This was wrong since the optional KIND= argument has already been
taken into account by intrinsic processing; instead, the type of
the first argument should decide the issue.
Differential Revision: https://reviews.llvm.org/D103568
More information about the All-commits
mailing list