This is an archive of the discontinued LLVM Phabricator instance.

[ExpandReductions] Add lowering for minimum/maximum reductions
AbandonedPublic

Authored by anna on Jun 7 2023, 6:51 AM.

Details

Summary

This patch adds the lowering for these minimum/maximum reduction intrinsics in the expand reductions pass.
If the nnan/nsz flags are present, these are propagated as well. The reduction is done as a series of shuffles
with vectorized minimum/maximum intrinsics.

This patch adds the lowering for the intrinsic introduced in https://reviews.llvm.org/D152370.

Diff Detail

Event Timeline

anna created this revision.Jun 7 2023, 6:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 7 2023, 6:51 AM
anna requested review of this revision.Jun 7 2023, 6:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 7 2023, 6:51 AM
anna abandoned this revision.Jun 27 2023, 11:43 AM

Done directly through SelectionDAG lowering. Closing this off.