[all-commits] [llvm/llvm-project] 705626: [DAG] Fold multiple insert_vector_elt of zero valu...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Wed Mar 15 02:56:44 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 70562607ab385423e076b3c9851860291201e509
      https://github.com/llvm/llvm-project/commit/70562607ab385423e076b3c9851860291201e509
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2023-03-15 (Wed, 15 Mar 2023)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/test/CodeGen/AArch64/neon-dotreduce.ll
    M llvm/test/CodeGen/AArch64/vecreduce-add-legalization.ll
    M llvm/test/CodeGen/AArch64/vecreduce-umax-legalization.ll
    M llvm/test/CodeGen/X86/clear_upper_vector_element_bits.ll
    M llvm/test/CodeGen/X86/insertelement-zero.ll

  Log Message:
  -----------
  [DAG] Fold multiple insert_vector_elt of zero values into an AND mask

This also allows us to make use of the existing isVectorClearMaskLegal shuffle canonicalization

Differential Revision: https://reviews.llvm.org/D145939




More information about the All-commits mailing list