This is an archive of the discontinued LLVM Phabricator instance.

AArch64/GlobalISel: Reduce use of getMinClassForRegBank
ClosedPublic

Authored by arsenm on Apr 11 2022, 4:33 PM.

Details

Reviewers
paquette
aemerson
Summary

getMinClassForRegBank and getRegClassForTypeOnBank were basically
identical functions with different APIs. Consolidate on the version
that uses LLT instead of a bitwidth, since that would be more
appropriate to use in a generic API. Keep getMinClassForRegBank around
for now, since copies are a special case that can't simply read the
type from the register operands.

Diff Detail

Event Timeline

arsenm created this revision.Apr 11 2022, 4:33 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 11 2022, 4:33 PM
arsenm requested review of this revision.Apr 11 2022, 4:33 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 11 2022, 4:33 PM
Herald added a subscriber: wdng. · View Herald Transcript
This revision is now accepted and ready to land.Apr 12 2022, 10:18 AM