[PATCH] D130533: [SVE] Extend findMoreOptimalIndexType so BUILD_VECTORs do not force 64bit indices.

Paul Walker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 25 16:54:37 PDT 2022


paulwalker-arm created this revision.
Herald added subscribers: psnobl, arphaman, hiraditya, tschuett.
Herald added a reviewer: efriedma.
Herald added a project: All.
paulwalker-arm requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Extends findMoreOptimalIndexType to allow ISD::BUILD_VECTOR based
indices to be truncated when such truncation is lossless. This can
enable the use of 32bit gather/scatter indices thus making it less
likely to have to split a gather/scatter in two.

Depends on D125194 <https://reviews.llvm.org/D125194>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D130533

Files:
  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130533.447522.patch
Type: text/x-patch
Size: 7629 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220725/8a401db5/attachment.bin>


More information about the llvm-commits mailing list