[all-commits] [llvm/llvm-project] 6965a7: [flang] Fold LGE/LGT/LLE/LLT intrinsic functions

Peter Klausler via All-commits all-commits at lists.llvm.org
Thu Oct 14 15:24:19 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6965a776ee192cb4c1a2618c270254fbf70879df
      https://github.com/llvm/llvm-project/commit/6965a776ee192cb4c1a2618c270254fbf70879df
  Author: peter klausler <pklausler at nvidia.com>
  Date:   2021-10-14 (Thu, 14 Oct 2021)

  Changed paths:
    M flang/include/flang/Evaluate/common.h
    M flang/include/flang/Evaluate/type.h
    M flang/lib/Evaluate/fold-logical.cpp
    M flang/lib/Semantics/check-io.h
    M flang/lib/Semantics/data-to-inits.cpp
    M flang/lib/Semantics/resolve-names.cpp
    M flang/lib/Semantics/runtime-type-info.cpp
    A flang/test/Evaluate/fold-char-cmp.f90
    M flang/test/Evaluate/folding01.f90
    M flang/test/Evaluate/folding05.f90

  Log Message:
  -----------
  [flang] Fold LGE/LGT/LLE/LLT intrinsic functions

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.)

Differential Revision: https://reviews.llvm.org/D111843




More information about the All-commits mailing list