[AArch64][NFC] Change order of instructions in isAssociativeAndCommutative
authorKAWASHIMA Takahiro <t-kawashima@fujitsu.com>
Thu, 8 Dec 2022 05:15:21 +0000 (14:15 +0900)
committerKAWASHIMA Takahiro <t-kawashima@fujitsu.com>
Mon, 12 Dec 2022 00:52:03 +0000 (09:52 +0900)
commita008b892a999189d6e4fd4376ce5d4d58f32b0f2
tree5d5c71386bcd86b4afd8bc7f043e08a4d6fe0a47
parent94f290e71600bf694646c454b0618bb3504bc711
[AArch64][NFC] Change order of instructions in isAssociativeAndCommutative

Before this change, the order of instructions in `case` labels was
inconsistent. It is alphabetical order for FP instructions but another
order for integer instructions. This commit changes the order to
1) instruction set (base/FP/SIMD), 2) mnemonic, 3) element type.
I believe this change makes it consistent, improves understandability,
and makes it easy to add/remove a group of instructions.

Differential Revision: https://reviews.llvm.org/D139607
llvm/lib/Target/AArch64/AArch64InstrInfo.cpp