[SVE][ISel] Ensure explicit gather/scatter offset extension isn't lost.
authorPaul Walker <paul.walker@arm.com>
Thu, 7 Apr 2022 16:42:11 +0000 (17:42 +0100)
committerPaul Walker <paul.walker@arm.com>
Fri, 29 Apr 2022 13:20:13 +0000 (14:20 +0100)
commit59588f0a3d47e3e366d675b8f9724c10a6222c0e
tree098611ee73ed47b9813eeb8032ab930215a82fd3
parentc5e5b54350fecd4b44c60eb4e982c13de5307aee
[SVE][ISel] Ensure explicit gather/scatter offset extension isn't lost.

getGatherScatterIndexIsExtended currently looks through all
SIGN_EXTEND_INREG operations regardless of their input type.  This
patch restricts the code to only look through i32->i64 extensions,
which are the ones supported implicitly by SVE addressing modes.

Differential Revision: https://reviews.llvm.org/D123318
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/test/CodeGen/AArch64/sve-gather-scatter-addr-opts.ll