This is an archive of the discontinued LLVM Phabricator instance.

[X86] Combine fminnum/fmaxnum with non-nan operand to fmin/fmax
ClosedPublic

Authored by nikic on May 25 2019, 8:21 AM.

Details

Summary

If we have a known non-nan operand, place it in the second operand of fmin/fmax that is returned if either operand is nan.

Diff Detail

Event Timeline

nikic created this revision.May 25 2019, 8:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 25 2019, 8:21 AM
spatel accepted this revision.May 25 2019, 8:32 AM

LGTM - thanks!

This revision is now accepted and ready to land.May 25 2019, 8:32 AM
This revision was automatically updated to reflect the committed changes.