This is an archive of the discontinued LLVM Phabricator instance.

[mlir][LLVM] Introduce reduction intrinsics for minimum/maximum
ClosedPublic

Authored by unterumarmung on Jul 20 2023, 10:52 AM.

Details

Summary

This patch adds supports for the reduction intrinsic
for floating point minimum and maximum that have
been added to LLVM by https://reviews.llvm.org/D152370.

Related to: #63969

Diff Detail

Event Timeline

unterumarmung created this revision.Jul 20 2023, 10:52 AM
Herald added a reviewer: ftynse. · View Herald Transcript
Herald added a reviewer: dcaballe. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
unterumarmung requested review of this revision.Jul 20 2023, 10:52 AM
dcaballe accepted this revision.Jul 20 2023, 11:04 AM

Awesome! I just wrote similar code yesterday! :)

This revision is now accepted and ready to land.Jul 20 2023, 11:04 AM

Awesome! I just wrote similar code yesterday! :)

Should I proceed with the https://github.com/llvm/llvm-project/issues/63969 or do you have the solution for that? If yes, is my understanding correct that we should just nuke createMinMaxF function that adds boilerplate for the NaN handling?

Awesome! I just wrote similar code yesterday! :)

Should I proceed with the https://github.com/llvm/llvm-project/issues/63969 or do you have the solution for that? If yes, is my understanding correct that we should just nuke createMinMaxF function that adds boilerplate for the NaN handling?

Thanks, no I just run a few experiments. Yes, we have to replace createMinMaxF with the corresponding maximum/minimum and the reduction intrinsics similarly. Thanks a lot for looking into this!

Address review comments

Pushed changes to wrong revision, revert

dcaballe accepted this revision.Jul 21 2023, 1:54 PM