This is an archive of the discontinued LLVM Phabricator instance.

[AVX512] Fix EXTRACT_VECTOR_ELT for v2i1/v4i1/v32i1/v64i1 with variable index.
ClosedPublic

Authored by igorb on Feb 21 2017, 2:10 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

igorb created this revision.Feb 21 2017, 2:10 AM
delena added inline comments.Feb 21 2017, 3:21 AM
lib/Target/X86/X86ISelLowering.cpp
13741 ↗(On Diff #89177)

You can extend v8i1 and v16i1 to 128 or 256 or 512.
Is one of the variants is preferable in terms of performance?
If all the same, please leave a comment inside.

igorb added inline comments.Feb 21 2017, 4:25 AM
lib/Target/X86/X86ISelLowering.cpp
13741 ↗(On Diff #89177)

For KNL extend v8i1 and v16i1 to 512bit vector generate better code .

delena accepted this revision.Feb 21 2017, 4:47 AM

LGTM after a comment about better performance on KNL when extending to 512-bit.

This revision is now accepted and ready to land.Feb 21 2017, 4:47 AM
This revision was automatically updated to reflect the committed changes.