DAG: Fold out out of bounds insert_vector_elt
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Sat, 3 Dec 2016 23:03:26 +0000 (23:03 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Sat, 3 Dec 2016 23:03:26 +0000 (23:03 +0000)
commit92fede361fa9881c518fadec89052a47567f4342
treea439357f7a858f3459be8cb511e7cda96a221bcf
parent66caac5735624f10a90921e43bb8c27eca58bee5
DAG: Fold out out of bounds insert_vector_elt

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

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