[SVE][SelectionDAG] Use INDEX to generate matching instances of BUILD_VECTOR.
authorPaul Walker <paul.walker@arm.com>
Sun, 8 May 2022 20:40:06 +0000 (21:40 +0100)
committerPaul Walker <paul.walker@arm.com>
Tue, 26 Jul 2022 15:28:37 +0000 (15:28 +0000)
commite5c892dd85be611396fc77a6b3fcf04493d5b586
tree1458424f12ad0b8c7bdaa72f899beddf40872ab8
parenta97bb48db85ba9da459bc8ff813613349cfa8e72
[SVE][SelectionDAG] Use INDEX to generate matching instances of BUILD_VECTOR.

This patch starts small, only detecting sequences of the form
<a, a+n, a+2n, a+3n, ...> where a and n are ConstantSDNodes.

Differential Revision: https://reviews.llvm.org/D125194
llvm/include/llvm/CodeGen/SelectionDAGNodes.h
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/test/CodeGen/AArch64/sve-fixed-length-addressing-modes.ll [new file with mode: 0644]
llvm/test/CodeGen/AArch64/sve-fixed-length-build-vector.ll [new file with mode: 0644]