[PATCH] D27333: DAG: Fold out out of bounds insert_vector_elt

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 1 22:16:33 PST 2016


arsenm created this revision.
arsenm added reviewers: efriedma, bogner.
arsenm added a subscriber: llvm-commits.
Herald added subscribers: wdng, nemanjai.

getNode already prevents formation of out of bounds constant
extract_vector_elts. Do the same for insert_vector_elt.

As came up in https://reviews.llvm.org/D26174


https://reviews.llvm.org/D27333

Files:
  lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  test/CodeGen/PowerPC/vec_add_sub_quadword.ll
  test/CodeGen/X86/avx512-insert-extract.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27333.80029.patch
Type: text/x-patch
Size: 7078 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161202/a8548fd7/attachment.bin>


More information about the llvm-commits mailing list