This is an archive of the discontinued LLVM Phabricator instance.

[AArch64][GlobalISel] Try to use existing reg classes in getRegClassesForCopy
AcceptedPublic

Authored by paquette on Feb 12 2020, 1:29 PM.

Details

Reviewers
aemerson
Summary

When the source or destination of a copy already has a register class, we should use it when possible instead of computing it using getMinClassForRegBank.

We always set GetAllRegSet to true in getMinClassForRegBank when selecting copies. This is fine, but it has the side effect of adding extra copies in MIR tests, which can be annoying.

Diff Detail