[all-commits] [llvm/llvm-project] 6243b9: [flang] Do not create arith.extui with same from/t...

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Sun Apr 24 11:38:02 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6243b90ead7a4d9e4097849498bea6749836de98
  Author: Valentin Clement (バレンタイン クレメン) <clementval at gmail.com>
  Date:   2022-04-24 (Sun, 24 Apr 2022)

  Changed paths:
    M flang/lib/Lower/IntrinsicCall.cpp
    M flang/test/Lower/Intrinsics/ichar.f90

  Log Message:
  [flang] Do not create arith.extui with same from/to type

In some case the lowering of `ichar` is generating an `arith.extui` operation
with the same from/to type. This operation do not accept from/to types to be
the same. If the from/to types are identical, we do not generate the extra

Reviewed By: jeanPerier

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

More information about the All-commits mailing list