diff options
| author | jeanPerier <jperier@nvidia.com> | 2024-12-03 10:04:52 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-03 10:04:52 +0100 |
| commit | cd7e65398fbbd9642573013800dc3ae1e7307f82 (patch) | |
| tree | 7ac87d137387b30571f067f8d441009aa5526a08 /lldb/test/Shell/ScriptInterpreter/Python | |
| parent | a871124f8709f6b5e837c6044ce7df056f52292a (diff) | |
| download | llvm-cd7e65398fbbd9642573013800dc3ae1e7307f82.zip llvm-cd7e65398fbbd9642573013800dc3ae1e7307f82.tar.gz llvm-cd7e65398fbbd9642573013800dc3ae1e7307f82.tar.bz2 | |
[flang] optimize array function calls using hlfir.eval_in_mem (#118070)
This patch encapsulate array function call lowering into
hlfir.eval_in_mem and allows directly evaluating the call into the LHS
when possible.
The conditions are: LHS is contiguous, not accessed inside the function,
it is not a whole allocatable, and the function results needs not to be
finalized. All these conditions are tested in the previous hlfir.eval_in_mem
optimization (#118069) that is leveraging the extension of getModRef to
handle function calls(#117164).
This yields a 25% speed-up on polyhedron channel2 benchmark (from 1min
to 45s measured on an X86-64 Zen 2).
Diffstat (limited to 'lldb/test/Shell/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions
