[AArch64] Remove always true Perfect cost check. NFC
authorDavid Green <david.green@arm.com>
Fri, 8 Apr 2022 11:16:34 +0000 (12:16 +0100)
committerDavid Green <david.green@arm.com>
Fri, 8 Apr 2022 11:16:34 +0000 (12:16 +0100)
commita93607c479092ccae41c033f8d27fe99621ddef3
tree2dde990cc5813a53772394ee9da0e2cb3b52ab40
parent33ab88ef8d8236b14e99cdc778cc20f38e4e88fa
[AArch64] Remove always true Perfect cost check. NFC

Perfect shuffle costs are always encoded less than 4, and shouldn't
really have a cost more than 3, so it makes no sense to check it when
generating shuffles. The perfect shuffle is likely always better than a
tbl too (although that may depend on whether it is in a loop).
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp