[all-commits] [llvm/llvm-project] a35bb0: [flang][hlfir] Insert casts in hlfir.associate rew...

jeanPerier via All-commits all-commits at lists.llvm.org
Wed Feb 22 06:28:06 PST 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a35bb0ee2070f0b674d9d758277dde302d5277cc
  Author: Jean Perier <jperier at nvidia.com>
  Date:   2023-02-22 (Wed, 22 Feb 2023)

  Changed paths:
    M flang/lib/Optimizer/HLFIR/Transforms/BufferizeHLFIR.cpp
    M flang/test/HLFIR/associate-codegen.fir

  Log Message:
  [flang][hlfir] Insert casts in hlfir.associate rewrites

When the associated expression came from a moved variable, the
type of the moved variable may not exactly match the hlfir.associate
result and cannot be re-used directly. Insert fir.convert/fir.box_addr
as needed.

Reviewed By: clementval

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

More information about the All-commits mailing list