This is an archive of the discontinued LLVM Phabricator instance.

[AVX512] Fix extractelement i1 lowering.
ClosedPublic

Authored by igorb on Aug 7 2016, 12:50 AM.

Details

Summary

[AVX512] Fix extractelement i1 lowering.
The previous implementation (not custom) doesn't enforce zeroing off upper bits. The assumption is that i1 PRODUCER ( truncate and extractelement) must zero all upper bits, so i1 CONSUMER instructions ( test, zext, save, etc) can be done without additional zeroing.
Make extractelement i1 lowering custom for all vector i1.

Diff Detail

Repository
rL LLVM

Event Timeline

igorb updated this revision to Diff 67094.Aug 7 2016, 12:50 AM
igorb retitled this revision from to [AVX512] Fix extractelement i1 lowering..
igorb updated this object.
igorb added a reviewer: delena.
igorb set the repository for this revision to rL LLVM.
igorb added a subscriber: llvm-commits.
igorb updated this revision to Diff 67662.Aug 11 2016, 2:32 AM
igorb updated this object.
igorb updated this object.
delena accepted this revision.Aug 11 2016, 3:55 AM
delena edited edge metadata.
This revision is now accepted and ready to land.Aug 11 2016, 3:55 AM
This revision was automatically updated to reflect the committed changes.