[PATCH] D40650: [InstSimplify] Fold insertelement into undef if index is out of bounds
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 30 07:33:36 PST 2017
spatel accepted this revision.
spatel added subscribers: zvi, arsenm.
spatel added a comment.
This revision is now accepted and ready to land.
LGTM.
Note that we should also check if the index itself is 'undef' (similar to https://reviews.llvm.org/D40231), but that may hit the problem described in that review (cc'ing @arsenm @zvi).
Please add a TODO comment for that.
https://reviews.llvm.org/D40650
More information about the llvm-commits
mailing list