[all-commits] [llvm/llvm-project] f1dfc0: [fir] Add fir.cmpc conversion
Diana via All-commits
all-commits at lists.llvm.org
Tue Nov 16 04:29:13 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f1dfc0275c543db14b1723ee2e33f0910dcc7f24
https://github.com/llvm/llvm-project/commit/f1dfc0275c543db14b1723ee2e33f0910dcc7f24
Author: Diana Picus <diana.picus at linaro.org>
Date: 2021-11-16 (Tue, 16 Nov 2021)
Changed paths:
M flang/lib/Optimizer/CodeGen/CodeGen.cpp
M flang/test/Fir/convert-to-llvm.fir
Log Message:
-----------
[fir] Add fir.cmpc conversion
This patch adds the codegen for fir.cmpc. The real and imaginary parts
are extracted and compared separately. For the .EQ. predicate the
results are AND'd, for the .NE. predicate the results are OR'd, and for
other predicates we keep only the result on the real parts.
This patch is part of the upstreaming effort from fir-dev.
Differential Revision: https://reviews.llvm.org/D113976
Co-authored-by: Eric Schweitz <eschweitz at nvidia.com>
Co-authored-by: Jean Perier <jperier at nvidia.com>
More information about the All-commits
mailing list