Add missing vector write of vector read reduction, i.e.:
(insert_vector_elt x (extract_vector_elt x idx) idx) to x
Paths
| Differential D35563
[DAG] Optimize away degenerate INSERT_VECTOR_ELT nodes. ClosedPublic Authored by niravd on Jul 18 2017, 8:04 AM.
Details Summary Add missing vector write of vector read reduction, i.e.: (insert_vector_elt x (extract_vector_elt x idx) idx) to x
Diff Detail
Event TimelineComment Actions I've updated the shifts tests to include the constant broadcast comments - please can you rebase?
Comment Actions
Rebased. update_llc_test_checks didn't add any comments. Comment Actions LGTM with one minor
This revision is now accepted and ready to land.Jul 20 2017, 4:02 AM Closed by commit rL308617: [DAG] Optimize away degenerate INSERT_VECTOR_ELT nodes. (authored by niravd). · Explain WhyJul 20 2017, 6:50 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 107139 lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/vector-shift-ashr-256.ll
test/CodeGen/X86/vector-shift-lshr-256.ll
test/CodeGen/X86/vector-shift-shl-256.ll
test/CodeGen/X86/vector-shuffle-512-v8.ll
|
Use InVal.getOperand(0) and InVal.getOperand(1) directly?