llvm-project
cc46d0be - [flang] Expand SUM(DIM=CONSTANT) into an hlfir.elemental. (#118556)

Commit
300 days ago
[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).
Author
Parents
Loading