[all-commits] [llvm/llvm-project] b5fa9a: [flang][hlfir] Evaluate actual args before impure ...
Slava Zakharin via All-commits
all-commits at lists.llvm.org
Mon Jul 3 10:01:42 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b5fa9af4ae4955289693ce4076871cd0c92d5684
https://github.com/llvm/llvm-project/commit/b5fa9af4ae4955289693ce4076871cd0c92d5684
Author: Slava Zakharin <szakharin at nvidia.com>
Date: 2023-07-03 (Mon, 03 Jul 2023)
Changed paths:
M flang/lib/Lower/ConvertCall.cpp
M flang/test/Lower/HLFIR/elemental-user-procedure-ref.f90
Log Message:
-----------
[flang][hlfir] Evaluate actual args before impure elemental calls.
Actual argument expressions must be evaluated before the invocation
of the sequence of per-element calls of an impure elemental subprogram.
Otherwise, the side effects of the calls may affect the input for
the consequent elements.
The proposed changes are described by Jean in D154174.
Reviewed By: tblah
Differential Revision: https://reviews.llvm.org/D154263
More information about the All-commits
mailing list