From e4f20c0b77217278954f5bf752b53fcfbd36e145 Mon Sep 17 00:00:00 2001 From: Kunal Pathak Date: Thu, 4 May 2023 14:22:38 -0700 Subject: [PATCH] Fix the revert I did previously --- src/coreclr/jit/lsra.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/coreclr/jit/lsra.cpp b/src/coreclr/jit/lsra.cpp index 53d93ffed0d4f..43a6f977d11f2 100644 --- a/src/coreclr/jit/lsra.cpp +++ b/src/coreclr/jit/lsra.cpp @@ -2043,6 +2043,12 @@ void LinearScan::identifyCandidates() // TODO-Throughput: This mapping can surely be more efficiently done void LinearScan::initVarRegMaps() { + if (!enregisterLocalVars) + { + inVarToRegMaps = nullptr; + outVarToRegMaps = nullptr; + return; + } assert(compiler->lvaTrackedFixed); // We should have already set this to prevent us from adding any new tracked // variables.