Enable try mode in RA local's switchToAssignment()

This feature has been disabled for a long time so
it could be tested properly, but production didn't
reveal any issues.

When try mode is enabled the RA will try to allocate
the reassignment first to avoid possibly having to
emit code in a separate block (try mode basically
"tries" to emit code before a branch and not as a
consequence of it).
This commit is contained in:
kobalicek
2024-06-05 00:35:11 +02:00
parent 63e7d060ac
commit 4a61c23ab6

View File

@@ -137,10 +137,6 @@ Error RALocalAllocator::switchToAssignment(PhysToWorkMap* dstPhysToWorkMap, cons
dst.initMaps(dstPhysToWorkMap, _tmpWorkToPhysMap);
dst.assignWorkIdsFromPhysIds();
// TODO: Remove this - finally enable this functionality.
if (tryMode)
return kErrorOk;
for (RegGroup group : RegGroupVirtValues{}) {
// STEP 1
// ------