[all-commits] [llvm/llvm-project] 3064d6: [flang][hlfir] Simplify hlfir.assign default codeg...

jeanPerier via All-commits all-commits at lists.llvm.org
Thu Feb 23 00:13:36 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3064d6b7b062cca348fd5528f3a77bff7df7e5f9
      https://github.com/llvm/llvm-project/commit/3064d6b7b062cca348fd5528f3a77bff7df7e5f9
  Author: Jean Perier <jperier at nvidia.com>
  Date:   2023-02-23 (Thu, 23 Feb 2023)

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

  Log Message:
  -----------
  [flang][hlfir] Simplify hlfir.assign default codegen for arrays

The previous code was always emitting two genAssign calls to create
a temporary copy of the RHS if it could overlap with the LHS.

This inline temporary creation is not needed anymore after:
https://github.com/llvm/llvm-project/commit/755535b5eb5f6d60e9cc347cecd9e057231b92bb
that updated the assignment runtime to detect overlap and make a
temporary copy in the runtime directly.

Note that optimized inlined assignment will still have to do the alias
analysis to skip the copy when added later.

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




More information about the All-commits mailing list