[all-commits] [llvm/llvm-project] e779d5: [flang][hlfir] Preserve hlfir.assign in the buffer...
jeanPerier via All-commits
all-commits at lists.llvm.org
Sun Apr 16 22:48:56 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e779d54d2137c918572f4a70bf5c9341500fab6b
https://github.com/llvm/llvm-project/commit/e779d54d2137c918572f4a70bf5c9341500fab6b
Author: Jean Perier <jperier at nvidia.com>
Date: 2023-04-17 (Mon, 17 Apr 2023)
Changed paths:
M flang/lib/Optimizer/HLFIR/Transforms/BufferizeHLFIR.cpp
A flang/test/HLFIR/assign-bufferize.fir
Log Message:
-----------
[flang][hlfir] Preserve hlfir.assign in the bufferize-hlfir pass
hlfir.assign must be rewritten in the bufferize pass since its operands,
that can be expressions, may have been updated. This is just
an operand update rewrite. The previous code was replacing the
operation, but it was dropping all hlfir.assign on the floor doing
so. This broke allocatable assignment semantics that use attributes.
Update the operands in place instead to preserve the attributes, if any.
Differential Revision: https://reviews.llvm.org/D148310
More information about the All-commits
mailing list