The RA inserts kills that ensure that live variables are not enregistered across
unmanaged calls, so this is not necessary.
}
}
+#ifdef LEGACY_BACKEND
/* Do we have any live variables? */
-
if (!VarSetOps::IsEmpty(this, life))
{
- // For each live variable if it is a GC-ref type, we
- // mark it volatile to prevent if from being enregistered
+ // For each live variable if it is a GC-ref type, mark it volatile to prevent if from being enregistered
// across the unmanaged call.
+ //
+ // Note that this is not necessary when targeting the RyuJIT backend, as its RA handles these kills itself.
unsigned lclNum;
LclVarDsc* varDsc;
}
}
}
+#endif // LEGACY_BACKEND
}
}