This is an archive of the discontinued LLVM Phabricator instance.

[X86][FP16] Do not combine fminnum/fmaxnum for FP16 emulation
ClosedPublic

Authored by pengfei on Dec 1 2022, 12:09 AM.

Details

Summary

Under the emulation situation, we lack native fmin/fmax instruction support.

Fixes #59258

Diff Detail

Event Timeline

pengfei created this revision.Dec 1 2022, 12:09 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 1 2022, 12:09 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
pengfei requested review of this revision.Dec 1 2022, 12:09 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 1 2022, 12:09 AM
skan added a comment.Dec 1 2022, 12:39 AM

Could you explain more about why we should not do the combination in summary?

pengfei edited the summary of this revision. (Show Details)Dec 1 2022, 2:00 AM
spatel added a subscriber: spatel.Dec 1 2022, 5:11 AM
spatel added inline comments.
llvm/test/CodeGen/X86/pr59258.ll
5

Add nounwind to reduce .cfi noise?

171

I don't think it changes anything, but shouldn't these calls be @llvm.*.v8f16?

pengfei updated this revision to Diff 479256.Dec 1 2022, 5:31 AM
pengfei marked an inline comment as done.

Address review comments.

llvm/test/CodeGen/X86/pr59258.ll
171

Good catch, thanks!

spatel accepted this revision.Dec 1 2022, 6:09 AM

LGTM

This revision is now accepted and ready to land.Dec 1 2022, 6:09 AM
skan accepted this revision.Dec 1 2022, 6:12 AM

LGTM

This revision was landed with ongoing or failed builds.Dec 1 2022, 7:24 AM
This revision was automatically updated to reflect the committed changes.