[PATCH] Constfold insertelement to undef when index is out-of-bounds

David Majnemer david.majnemer at gmail.com
Mon Apr 27 02:30:07 PDT 2015


InstCombine would work but there is a better place: InstSimplify.  It is
preferable to stick things in InstSimplify when a new instruction doesn't
need to be created.

On Mon, Apr 27, 2015 at 5:27 AM, Paweł Bylica <chfast at gmail.com> wrote:

> Thanks for the review.
>
> What do you think about adding "the same" to InstCombine?
>
>
> http://reviews.llvm.org/D9287
>
> EMAIL PREFERENCES
>   http://reviews.llvm.org/settings/panel/emailpreferences/
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150427/ee6d9a9e/attachment.html>


More information about the llvm-commits mailing list