Skip to content
Unverified Commit 810c2915 authored by David Green's avatar David Green Committed by GitHub
Browse files

[Flang] Generate inline reduction loops for elemental count intrinsics (#75774)

This adds a ReductionElementalConversion transform to
OptimizedBufferizationPass, taking hlfir::count(hlfir::elemental) and
generating the inline loop to perform the count of true elements. This
lets us generate a single loop instead of ending up as two plus a
temporary.

Any and All should be able to share the same code with a different
function/initial value.
parent 6eb372e4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment