This is an archive of the discontinued LLVM Phabricator instance.

[X86] Add some cost model entries for sext/zext for avx512bw.
ClosedPublic

Authored by craig.topper on Nov 27 2018, 3:10 PM.

Details

Summary

This fixes some of scalarization costs reported for sext/zext using avx512bw. This does not fix all scalarization costs being reported. Just the worst.

I've restricted this only to combinations of types that are legal with avx512bw like v32i1/v64i1/v32i16/v64i8 and conversions between vXi1 and vXi8/vXi16 with legal vXi8/vXi16 result types.

Diff Detail

Repository
rL LLVM

Event Timeline

craig.topper created this revision.Nov 27 2018, 3:10 PM
spatel accepted this revision.Nov 28 2018, 6:47 AM

LGTM

This revision is now accepted and ready to land.Nov 28 2018, 6:47 AM
This revision was automatically updated to reflect the committed changes.