[all-commits] [llvm/llvm-project] a200b0: [DAG] Introduce getSplat utility for common dispat...

Philip Reames via All-commits all-commits at lists.llvm.org
Mon Oct 3 12:50:27 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a200b0fc256a890b3f72014d20fce9e49d75763b
      https://github.com/llvm/llvm-project/commit/a200b0fc256a890b3f72014d20fce9e49d75763b
  Author: Philip Reames <preames at rivosinc.com>
  Date:   2022-10-03 (Mon, 03 Oct 2022)

  Changed paths:
    M llvm/include/llvm/CodeGen/SelectionDAG.h
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp

  Log Message:
  -----------
  [DAG] Introduce getSplat utility for common dispatch pattern [nfc]

We have a very common pattern of dispatching between BUILD_VECTOR and SPLAT_VECTOR creation repeated in many cases in code.  Common the pattern into a utility function.




More information about the All-commits mailing list