[all-commits] [llvm/llvm-project] cc46d0: [flang] Expand SUM(DIM=CONSTANT) into an hlfir.ele...
Slava Zakharin via All-commits
all-commits at lists.llvm.org
Thu Dec 5 09:36:33 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: cc46d0bee967989c12a0040bb3cab1319ae50e79
https://github.com/llvm/llvm-project/commit/cc46d0bee967989c12a0040bb3cab1319ae50e79
Author: Slava Zakharin <szakharin at nvidia.com>
Date: 2024-12-05 (Thu, 05 Dec 2024)
Changed paths:
M flang/lib/Optimizer/HLFIR/Transforms/SimplifyHLFIRIntrinsics.cpp
A flang/test/HLFIR/simplify-hlfir-intrinsics-sum.fir
Log Message:
-----------
[flang] Expand SUM(DIM=CONSTANT) into an hlfir.elemental. (#118556)
An array SUM with the specified constant DIM argument
may be expanded into hlfir.elemental with a reduction loop
inside it processing all elements of the specified dimension.
The expansion allows further optimization of the cases like
`A=SUM(B+1,DIM=1)` in the optimized bufferization pass
(given that it can prove there are no read/write conflicts).
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list