This is an archive of the discontinued LLVM Phabricator instance.

[X86 TTI] Implement LSV hook
ClosedPublic

Authored by loladiro on Mar 30 2017, 11:49 AM.

Details

Summary

LSV wants to know the maximum size that can be loaded to a vector register.
On X86, this always matches the maximum register width. Implement this
accordingly and add a test to make sure that LSV can vectorize up to the
maximum permissible width on X86.

Diff Detail

Repository
rL LLVM

Event Timeline

loladiro created this revision.Mar 30 2017, 11:49 AM
arsenm accepted this revision.Mar 31 2017, 11:24 AM

LGTM

This revision is now accepted and ready to land.Mar 31 2017, 11:24 AM
delena added inline comments.Apr 3 2017, 4:56 AM
lib/Target/X86/X86TargetTransformInfo.h
55 ↗(On Diff #93514)

Do you use this interface somewhere?

loladiro added inline comments.Apr 3 2017, 5:57 AM
lib/Target/X86/X86TargetTransformInfo.h
55 ↗(On Diff #93514)

LSV (LoadStoreVectorizer) uses it.

delena added inline comments.Apr 3 2017, 6:31 AM
lib/Target/X86/X86TargetTransformInfo.h
55 ↗(On Diff #93514)

Ok. Thanks.

This revision was automatically updated to reflect the committed changes.