This is an archive of the discontinued LLVM Phabricator instance.

LegalizeDAG: Implement promote for scalar_to_vector
ClosedPublic

Authored by arsenm on Nov 2 2015, 11:07 AM.

Details

Reviewers
resistor
Summary

This allows avoiding the default Expand behavior which
introduces stack usage. Bitcast the scalar and replace
the missing elements with undef.

Diff Detail

Event Timeline

arsenm updated this revision to Diff 38947.Nov 2 2015, 11:07 AM
arsenm retitled this revision from to LegalizeDAG: Implement promote for scalar_to_vector.
arsenm updated this object.
arsenm added a subscriber: llvm-commits.

Patch LGTM. Testcase?

resistor accepted this revision.Nov 10 2015, 10:19 AM
resistor added a reviewer: resistor.
This revision is now accepted and ready to land.Nov 10 2015, 10:19 AM
arsenm closed this revision.Nov 10 2015, 10:51 AM

r252632