This is an archive of the discontinued LLVM Phabricator instance.

[X86][FP16] Lower half->i16 into vcvttph2[u]w directly
ClosedPublic

Authored by pengfei on Feb 2 2023, 4:44 AM.

Diff Detail

Event Timeline

pengfei created this revision.Feb 2 2023, 4:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 2 2023, 4:44 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
pengfei requested review of this revision.Feb 2 2023, 4:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 2 2023, 4:44 AM
RKSimon added inline comments.Feb 3 2023, 1:29 AM
llvm/lib/Target/X86/X86ISelLowering.cpp
22836

widden -> widen

22837

We're losing the SrcVT check - either a f32/f64 check back or add an assert?

pengfei updated this revision to Diff 494789.Feb 3 2023, 7:40 PM

Address review comments. Thanks @RKSimon !

pengfei marked 2 inline comments as done.Feb 3 2023, 7:47 PM
LuoYuanke accepted this revision.Feb 3 2023, 10:34 PM

LGTM.

llvm/lib/Target/X86/X86ISelLowering.cpp
22841

Just curious, what does "N" means in NVT?

This revision is now accepted and ready to land.Feb 3 2023, 10:34 PM
RKSimon accepted this revision.Feb 4 2023, 1:53 AM

LGTM

pengfei added inline comments.Feb 4 2023, 2:22 AM
llvm/lib/Target/X86/X86ISelLowering.cpp
22841

New

This revision was landed with ongoing or failed builds.Feb 4 2023, 2:45 AM
This revision was automatically updated to reflect the committed changes.