[all-commits] [llvm/llvm-project] 55a11b: [VectorUtils] Add getShuffleDemandedElts helper

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Sun Oct 30 10:04:12 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 55a11b542e055744cac3beb87714fc90cacba4c0
      https://github.com/llvm/llvm-project/commit/55a11b542e055744cac3beb87714fc90cacba4c0
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-10-30 (Sun, 30 Oct 2022)

  Changed paths:
    M llvm/include/llvm/Analysis/VectorUtils.h
    M llvm/lib/Analysis/ValueTracking.cpp
    M llvm/lib/Analysis/VectorUtils.cpp
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
    M llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
    M llvm/unittests/Analysis/VectorUtilsTest.cpp

  Log Message:
  -----------
  [VectorUtils] Add getShuffleDemandedElts helper

We have similar code to translate a demanded elements mask for a shuffle's operands in multiple places - this patch adds a helper function to VectorUtils and updates a number of locations to use it directly.

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




More information about the All-commits mailing list