diff options
Diffstat (limited to 'src/jit/liveness.cpp')
-rw-r--r-- | src/jit/liveness.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/jit/liveness.cpp b/src/jit/liveness.cpp index b77aa40c5a..432ac80065 100644 --- a/src/jit/liveness.cpp +++ b/src/jit/liveness.cpp @@ -1647,13 +1647,14 @@ void Compiler::fgComputeLifeCall(VARSET_TP& life, GenTreeCall* call) } } +#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; @@ -1682,6 +1683,7 @@ void Compiler::fgComputeLifeCall(VARSET_TP& life, GenTreeCall* call) } } } +#endif // LEGACY_BACKEND } } |