[PATCH] D30137: [InstCombine] shrink truncated insertelement with constant operand

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 7 14:16:31 PST 2017


spatel added a comment.

In https://reviews.llvm.org/D30137#694830, @efriedma wrote:

> I'd be more comfortable special-casing insertelement into a undef vector (so there's an obvious efficient lowering on any architecture).


Yes, I think that's a safe intermediate step that still handles the motivating case. I'll update the patch.


https://reviews.llvm.org/D30137





More information about the llvm-commits mailing list