getNode already prevents formation of out of bounds constant
extract_vector_elts. Do the same for insert_vector_elt.
As came up in D26174
Paths
| Differential D27333
DAG: Fold out out of bounds insert_vector_elt ClosedPublic Authored by arsenm on Dec 1 2016, 10:16 PM.
Details
Diff Detail Event Timelinearsenm updated this object. arsenm added a child revision: D26174: DAG: Avoid OOB when legalizing vector indexing.Dec 1 2016, 10:17 PM This revision is now accepted and ready to land.Dec 2 2016, 10:16 AM efriedma edited edge metadata. Comment ActionsOh, wait, actually we should have a test which explicits checks that we fold the insertelement to undef. This revision now requires changes to proceed.Dec 2 2016, 10:17 AM This revision is now accepted and ready to land.Dec 9 2016, 11:00 AM
Revision Contents
Diff 80182 lib/CodeGen/SelectionDAG/SelectionDAG.cpp
test/CodeGen/PowerPC/vec_add_sub_quadword.ll
test/CodeGen/X86/avx512-insert-extract.ll
|
Please fix to generate vadduqm.