[PATCH] D35563: [DAG] Optimize away degenerate INSERT_VECTOR_ELT nodes.

Nirav Dave via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 18 08:04:44 PDT 2017


niravd created this revision.

Add missing vector write of vector read reduction, i.e.:

(insert_vector_elt x (extract_vector_elt x idx) idx) to x


https://reviews.llvm.org/D35563

Files:
  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35563.107102.patch
Type: text/x-patch
Size: 6135 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170718/a8f1add9/attachment.bin>


More information about the llvm-commits mailing list