[all-commits] [llvm/llvm-project] ec4623: [DAGCombiner] Fold `ty1 extract_vector(ty2 splat(V...

sdesmalen-arm via All-commits all-commits at lists.llvm.org
Wed Feb 9 06:31:28 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ec462325178ae061e667c7f32aa5727eeb9a7218
      https://github.com/llvm/llvm-project/commit/ec462325178ae061e667c7f32aa5727eeb9a7218
  Author: Sander de Smalen <sander.desmalen at arm.com>
  Date:   2022-02-09 (Wed, 09 Feb 2022)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/test/CodeGen/AArch64/sve-extract-fixed-vector.ll
    M llvm/test/CodeGen/AArch64/sve-extract-scalable-vector.ll
    M llvm/test/CodeGen/AArch64/sve-insert-vector.ll
    M llvm/test/CodeGen/AArch64/sve-st1-addressing-mode-reg-imm.ll
    M llvm/test/CodeGen/RISCV/rvv/vadd-vp.ll

  Log Message:
  -----------
  [DAGCombiner] Fold `ty1 extract_vector(ty2 splat(V)) -> ty1 splat(V)`

This seems like an obvious fold, which leads to a few improvements.

Reviewed By: david-arm

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




More information about the All-commits mailing list