This is an archive of the discontinued LLVM Phabricator instance.

[X86] Make 128/256-bit extract_subvector Legal instead of Custom. Move combining with BUILD_VECTOR from Legalization to DAG combine
ClosedPublic

Authored by craig.topper on Aug 27 2017, 9:30 AM.

Details

Summary

EXTRACT_SUBVECTOR was marked Custom solely so we could combine it with BUILD_VECTOR operations to create smaller BUILD_VECTORS during Legalization. But that sort of combining should really be done by the DAG combiner.

This patch adds the last piece of needed supported DAG combine to handle this. Once that's done we can make the EXTRACT_SUBVECTOR operations Legal.

Diff Detail

Repository
rL LLVM

Event Timeline

zvi accepted this revision.Aug 28 2017, 2:15 AM

LGTM

This revision is now accepted and ready to land.Aug 28 2017, 2:15 AM
This revision was automatically updated to reflect the committed changes.