This is an archive of the discontinued LLVM Phabricator instance.

[llvm][ARM] Refactor isMnemonicVPTPredicable
ClosedPublic

Authored by DavidSpickett on Mar 22 2023, 3:13 AM.

Details

Summary

Fixes #61607

Several names were repeated in this giant list. I have refactored
it and removed the duplicates.

Diff Detail

Event Timeline

DavidSpickett created this revision.Mar 22 2023, 3:13 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 22 2023, 3:13 AM
DavidSpickett requested review of this revision.Mar 22 2023, 3:13 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 22 2023, 3:13 AM

On second thought, let's refactor a bit.

DavidSpickett retitled this revision from [llvm][ARM] Sort and dedupe names in isMnemonicVPTPredicable to [llvm][ARM] Refactor isMnemonicVPTPredicable.Mar 22 2023, 3:30 AM
DavidSpickett edited the summary of this revision. (Show Details)
DavidSpickett added a reviewer: dmgreen.

This will perform probably slightly worse than repeated calls but that wasn't a concern in the first place, and is much easier to scan by eye if we needed to audit this function.

Put back isVPTPredicableCDEInstr that I didn't move over.

dmgreen accepted this revision.Mar 22 2023, 5:46 AM
dmgreen added reviewers: simon_tatham, samtebbs.

Sounds like a nice cleanup. LGTM

llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
12924

Could this use any_of to avoid the need to check against end?

This revision is now accepted and ready to land.Mar 22 2023, 5:46 AM

Use std::any_of.

DavidSpickett marked an inline comment as done.Mar 22 2023, 9:58 AM
This revision was landed with ongoing or failed builds.Mar 23 2023, 2:39 AM
This revision was automatically updated to reflect the committed changes.