[flang-commits] [PATCH] D111843: [flang] Fold LGE/LGT/LLE/LLT intrinsic functions
Peter Klausler via Phabricator via flang-commits
flang-commits at lists.llvm.org
Thu Oct 14 14:32:44 PDT 2021
klausler created this revision.
klausler added a reviewer: PeteSteinfeld.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a reviewer: sscalpone.
klausler requested review of this revision.
Fold the legacy intrinsic functions LGE, LGT, LLE, & LLT
by rewriting them into character relational expressions and
then folding those. Also fix folding of comparisons of
character values of distinct lengths: the shorter value must
be padded with blanks. (This fix exposed some bad test cases,
which are also fixed.)
https://reviews.llvm.org/D111843
Files:
flang/include/flang/Evaluate/common.h
flang/include/flang/Evaluate/type.h
flang/lib/Evaluate/fold-logical.cpp
flang/lib/Semantics/check-io.h
flang/lib/Semantics/data-to-inits.cpp
flang/lib/Semantics/resolve-names.cpp
flang/lib/Semantics/runtime-type-info.cpp
flang/test/Evaluate/fold-char-cmp.f90
flang/test/Evaluate/folding01.f90
flang/test/Evaluate/folding05.f90
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111843.379845.patch
Type: text/x-patch
Size: 7806 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20211014/2e036ae7/attachment.bin>
More information about the flang-commits
mailing list