[SVE][CodeGen] Remove performMaskedGatherScatterCombine
authorKerry McLaughlin <kerry.mclaughlin@arm.com>
Mon, 1 Feb 2021 11:04:36 +0000 (11:04 +0000)
committerKerry McLaughlin <kerry.mclaughlin@arm.com>
Mon, 1 Feb 2021 14:10:00 +0000 (14:10 +0000)
commit9b4fcfaa9e8f19f250c45e92dd2e5a305156b701
tree8f93fd3906d9b51cef6255aad5d91edba73c463f
parentf1e8136115ac86a633f670cd4d50cf41b71418d8
[SVE][CodeGen] Remove performMaskedGatherScatterCombine

The AArch64 DAG combine added by D90945 & D91433 extends the index
of a scalable masked gather or scatter to i32 if necessary.

This patch removes the combine and instead adds shouldExtendGSIndex, which
is used by visitMaskedGather/Scatter in SelectionDAGBuilder to query whether
the index should be extended before calling getMaskedGather/Scatter.

Reviewed By: david-arm

Differential Revision: https://reviews.llvm.org/D94525
llvm/include/llvm/CodeGen/TargetLowering.h
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.h