mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-17 04:24:37 +03:00
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:
@@ -137,10 +137,6 @@ Error RALocalAllocator::switchToAssignment(PhysToWorkMap* dstPhysToWorkMap, cons
|
|||||||
dst.initMaps(dstPhysToWorkMap, _tmpWorkToPhysMap);
|
dst.initMaps(dstPhysToWorkMap, _tmpWorkToPhysMap);
|
||||||
dst.assignWorkIdsFromPhysIds();
|
dst.assignWorkIdsFromPhysIds();
|
||||||
|
|
||||||
// TODO: Remove this - finally enable this functionality.
|
|
||||||
if (tryMode)
|
|
||||||
return kErrorOk;
|
|
||||||
|
|
||||||
for (RegGroup group : RegGroupVirtValues{}) {
|
for (RegGroup group : RegGroupVirtValues{}) {
|
||||||
// STEP 1
|
// STEP 1
|
||||||
// ------
|
// ------
|
||||||
|
|||||||
Reference in New Issue
Block a user