[PATCH] D59484: [TargetLowering] Add SimplifyDemandedBits support for ISD::INSERT_VECTOR_ELT

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 18 05:39:13 PDT 2019


RKSimon created this revision.
RKSimon added reviewers: craig.topper, spatel, efriedma, nikic.
Herald added a project: LLVM.

This helps us relax the extension of a lot of scalar elements before they are inserted into a vector.

Its exposes an issue in DAGCombiner::convertBuildVecZextToZext as some/all the zero-extensions may be relaxed to ANY_EXTEND, so we need to handle that case to avoid a couple of AVX2 VPMOVZX test regressions.

Once this is in it should be easier to fix a number of remaining failures to fold loads into VBROADCAST nodes.


Repository:
  rL LLVM

https://reviews.llvm.org/D59484

Files:
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  lib/CodeGen/SelectionDAG/TargetLowering.cpp
  test/CodeGen/X86/known-signbits-vector.ll
  test/CodeGen/X86/mulvi32.ll
  test/CodeGen/X86/vector-shuffle-128-v16.ll
  test/CodeGen/X86/vector-shuffle-128-v8.ll
  test/CodeGen/X86/vector-shuffle-256-v16.ll
  test/CodeGen/X86/vector-shuffle-256-v32.ll
  test/CodeGen/X86/vector-shuffle-512-v32.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59484.191068.patch
Type: text/x-patch
Size: 10416 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190318/ef0785ae/attachment.bin>


More information about the llvm-commits mailing list