This is an archive of the discontinued LLVM Phabricator instance.

X86: Improve AVX512 fptoui lowering
ClosedPublic

Authored by zvi on Sep 5 2017, 11:15 PM.

Details

Summary

Add patterns for

fptoui <16 x float> to <16 x i8>
fptoui <16 x float> to <16 x i16>

Diff Detail

Repository
rL LLVM

Event Timeline

zvi created this revision.Sep 5 2017, 11:15 PM
craig.topper added inline comments.Sep 5 2017, 11:26 PM
lib/Target/X86/X86ISelLowering.cpp
1276 ↗(On Diff #113959)

Any reason not to put these with the other FP_TO_UINT lines around line 1173?

zvi added inline comments.Sep 6 2017, 1:25 AM
lib/Target/X86/X86ISelLowering.cpp
1276 ↗(On Diff #113959)

That is ineed a better location. Thanks.

zvi updated this revision to Diff 113970.Sep 6 2017, 1:51 AM

Moving code following Craig's observation.

This revision is now accepted and ready to land.Sep 6 2017, 10:55 PM
This revision was automatically updated to reflect the committed changes.