Skip to content

Commit 451712c

Browse files
committed
Added aliasing comment in hlfir.associate definition.
1 parent ae126b8 commit 451712c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

flang/include/flang/Optimizer/HLFIR/HLFIROps.td

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,13 @@ def hlfir_AssociateOp : hlfir_Op<"associate", [AttrSizedOperandSegments,
758758
For expressions, this operation is an incentive to re-use the expression
759759
storage, if any, after the bufferization pass when possible (if the
760760
expression is not used afterwards).
761+
762+
For aliasing purposes, hlfir.associate with the source being
763+
a trivial FIR value is considered to be a unique allocation
764+
that does not alias with anything else. For non-trivial cases
765+
it may be a unique allocation or an alias for the source expression
766+
storage, so FIR alias analysis will look through it for finding
767+
the source.
761768
}];
762769

763770
let arguments = (ins

0 commit comments

Comments
 (0)