This is an archive of the discontinued LLVM Phabricator instance.

[DAG] Don't try to create an INSERT_SUBVECTOR with an illegal source
ClosedPublic

Authored by mkuper on Feb 14 2017, 1:35 PM.

Details

Summary

The vector op legalizer currently can't legalize INSERT_SUBVECTOR with an illegal source, and I'm not sure I'd like to teach it - it seems the general case would have to be similar to the CONCAT legalization (basically turn the INSERT_SUBVECTOR back into a BUILD_VECTOR).
Instead, make the - apparently only? - place that creates such INSERTs stop doing that.

This fixes PR31956.

Diff Detail

Repository
rL LLVM

Event Timeline

mkuper created this revision.Feb 14 2017, 1:35 PM
andreadb accepted this revision.Feb 15 2017, 3:57 AM

LGTM.

Thanks for the quick fix.

This revision is now accepted and ready to land.Feb 15 2017, 3:57 AM
This revision was automatically updated to reflect the committed changes.