[all-commits] [llvm/llvm-project] 810c29: [Flang] Generate inline reduction loops for elemen...
David Green via All-commits
all-commits at lists.llvm.org
Tue Jan 9 09:26:01 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 810c291574831eb06bfcb8fa0e27f9bbd5af6c59
https://github.com/llvm/llvm-project/commit/810c291574831eb06bfcb8fa0e27f9bbd5af6c59
Author: David Green <david.green at arm.com>
Date: 2024-01-09 (Tue, 09 Jan 2024)
Changed paths:
M flang/lib/Optimizer/HLFIR/Transforms/OptimizedBufferization.cpp
A flang/test/HLFIR/count-elemental.fir
Log Message:
-----------
[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.
More information about the All-commits
mailing list