[PATCH] D20763: [DAG] Improve legalization of INSERT_SUBVECTOR to avoid spilling
Michael Kuperstein via llvm-commits
llvm-commits at lists.llvm.org
Fri May 27 18:14:10 PDT 2016
mkuper created this revision.
mkuper added reviewers: bkramer, wmi.
mkuper added a subscriber: llvm-commits.
Instead of always spilling the vector and then performing the insert in-memory, when possible, insert directly into the correct half of the newly-split vector.
Unfortunately, aside from the SAD test, this doesn't really seem to get hit, and I'm not sure how to construct a test-case for the high lanes. One alternative is to make this safer by only inserting directly when Idx is 0 (this tested, and probably the common case). Let me know if you think that would be better.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 13509 bytes
Desc: not available
More information about the llvm-commits