This is an archive of the discontinued LLVM Phabricator instance.

[AArch64][NFC] Change order of instructions in isAssociativeAndCommutative
ClosedPublic

Authored by kawashima-fj on Dec 8 2022, 12:19 AM.

Details

Summary

Before this change, the order of instructions in case labels is 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.

I'll submit some patches to add instructions to the function which replaces D138107 after this patch is accepted.

Diff Detail

Event Timeline

kawashima-fj created this revision.Dec 8 2022, 12:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 8 2022, 12:19 AM
kawashima-fj requested review of this revision.Dec 8 2022, 12:19 AM
dmgreen accepted this revision.Dec 8 2022, 3:39 AM
dmgreen added reviewers: SjoerdMeijer, labrinea.

Sounds good to me. LGTM.

This revision is now accepted and ready to land.Dec 8 2022, 3:39 AM