AArch64/GlobalISel: Reduce use of getMinClassForRegBank
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Sat, 9 Apr 2022 13:49:08 +0000 (09:49 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 20 Apr 2022 01:04:32 +0000 (21:04 -0400)
commitd6457ec04af3f6e6cec7c8f228a1f6908363a944
treea1b076e75b950ac108b2206af17667787e5e47e0
parent12d79b1514b8036a6079495a45091c9bfb8db1a6
AArch64/GlobalISel: Reduce use of getMinClassForRegBank

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.
llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp