[PATCH] D123556: AArch64/GlobalISel: Reduce use of getMinClassForRegBank

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 11 16:33:14 PDT 2022


arsenm created this revision.
arsenm added reviewers: paquette, aemerson.
Herald added subscribers: hiraditya, kristof.beyls, rovka.
Herald added a project: All.
arsenm requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.

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.


https://reviews.llvm.org/D123556

Files:
  llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123556.422071.patch
Type: text/x-patch
Size: 8003 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220411/4f38bbd3/attachment.bin>


More information about the llvm-commits mailing list