[all-commits] [llvm/llvm-project] 1d837c: [flang] Do not try to rebox for assumed type

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Thu Mar 16 09:17:01 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1d837cf2cf17eee2be0d3a9b6dd7e54c03d67175
      https://github.com/llvm/llvm-project/commit/1d837cf2cf17eee2be0d3a9b6dd7e54c03d67175
  Author: Valentin Clement <clementval at gmail.com>
  Date:   2023-03-16 (Thu, 16 Mar 2023)

  Changed paths:
    M flang/include/flang/Optimizer/Dialect/FIRType.h
    M flang/lib/Lower/ConvertExpr.cpp
    M flang/lib/Optimizer/Builder/FIRBuilder.cpp
    M flang/lib/Optimizer/Dialect/FIRType.cpp
    M flang/test/Lower/assumed-type.f90

  Log Message:
  -----------
  [flang] Do not try to rebox for assumed type

Just use conversion from assuemd type to assumed type
because a rebox needs more information that are not available
with assumed type.

Also use `isAssumedType` instead of `isBoxNone` since assumed
type can have sequence information.

Depends on D146207

Reviewed By: PeteSteinfeld

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




More information about the All-commits mailing list