[PATCH] D118920: [DAGCombiner] Fold `ty1 extract_vector(ty2 splat(V)) -> t1 splat(V)`

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 3 09:13:04 PST 2022


sdesmalen created this revision.
Herald added subscribers: frasercrmck, ecnelises, luismarques, apazos, sameer.abuasal, s.egerton, Jim, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya.
sdesmalen requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, MaskRay.
Herald added a project: LLVM.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D118920

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118920.405679.patch
Type: text/x-patch
Size: 8042 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220203/6c441ecf/attachment.bin>


More information about the llvm-commits mailing list