[all-commits] [llvm/llvm-project] 41119a: [DAGCombiner] Extend visitAND to include EXTRACT_S...

david-arm via All-commits all-commits at lists.llvm.org
Mon Aug 1 02:32:48 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 41119a0f520d07a438f7434f17ce63cc3a942d1b
      https://github.com/llvm/llvm-project/commit/41119a0f520d07a438f7434f17ce63cc3a942d1b
  Author: David Sherwood <david.sherwood at arm.com>
  Date:   2022-08-01 (Mon, 01 Aug 2022)

  Changed paths:
    M llvm/include/llvm/CodeGen/ISDOpcodes.h
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    A llvm/test/CodeGen/AArch64/extract-subvec-combine.ll
    M llvm/test/CodeGen/AArch64/vector-fcvt.ll

  Log Message:
  -----------
  [DAGCombiner] Extend visitAND to include EXTRACT_SUBVECTOR

Eliminate an AND by redefining an anyext|sext|zext.

     (and (extract_subvector (anyext|sext|zext v) _) iN_mask)
  => (extract_subvector (zeroext_iN v))

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




More information about the All-commits mailing list