OSDN Git Service

AArch64: avoid splitting vector truncating stores.
authorTim Northover <tnorthover@apple.com>
Tue, 8 Jan 2019 13:30:27 +0000 (13:30 +0000)
committerTim Northover <tnorthover@apple.com>
Tue, 8 Jan 2019 13:30:27 +0000 (13:30 +0000)
commit8af0c56aa2672a1d02d8a349c9e18381a2482a39
tree3f019ad24c17d64bb7b058b5db31023b30561264
parente5efa6a22a313b382476afc8731df5494b0ed80f
AArch64: avoid splitting vector truncating stores.

We have code to split vector splats (of zero and non-zero) for performance
reasons, but it ignores the fact that a store might be truncating.

Actually, truncating stores are formed for vNi8 and vNi16 types. Since the
truncation is from a legal type, the size of the store is always <= 64-bits and
so they don't actually benefit from being split up anyway, so this patch just
disables that transformation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350620 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64ISelLowering.cpp
test/CodeGen/AArch64/ldst-opt.ll