[all-commits] [llvm/llvm-project] ed8e85: [flang][hlfir] deref pointers before lowering assi...
jeanPerier via All-commits
all-commits at lists.llvm.org
Mon Feb 6 06:15:00 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ed8e858a1478d18d321f104a86a579e03ba1886e
https://github.com/llvm/llvm-project/commit/ed8e858a1478d18d321f104a86a579e03ba1886e
Author: Jean Perier <jperier at nvidia.com>
Date: 2023-02-06 (Mon, 06 Feb 2023)
Changed paths:
M flang/lib/Lower/Bridge.cpp
M flang/lib/Optimizer/Builder/HLFIRTools.cpp
M flang/test/Lower/HLFIR/allocatable-and-pointer-subparts.f90
M flang/test/Lower/HLFIR/assignment-intrinsics.f90
Log Message:
-----------
[flang][hlfir] deref pointers before lowering assignment to hlfir.assign
There is little point not to dereference pointers LHS and RHS before
before emitting an hlfir.assign when lowering an assignment.
This pushes complexity and descriptor read side effects that are better
expressed in a load before the assignment.
Differential Revision: https://reviews.llvm.org/D143372
More information about the All-commits
mailing list