Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Demuirgos committed Oct 22, 2024
1 parent 13d793e commit d3bc4fc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Nethermind/Nethermind.Evm/CodeAnalysis/IL/IlAnalyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,11 @@ static void SegmentCode(CodeInfo codeInfo, (OpcodeInfo[], byte[][]) codeData, Il

segmentAvgSize += segment.Length;

if(segment.Length <= 1)
{
continue;
}

var segmentExecutionCtx = CompileSegment(segmentName, segment, codeData.Item2, vmConfig);
if (vmConfig.AggressiveJitMode)
{
Expand All @@ -169,8 +174,6 @@ static void SegmentCode(CodeInfo codeInfo, (OpcodeInfo[], byte[][]) codeData, Il
{
ilinfo.Segments.GetOrAdd(segment[0].ProgramCounter, segmentExecutionCtx);
}

Interlocked.Or(ref ilinfo.Mode, IlInfo.ILMode.JIT_MODE);
}

Interlocked.Or(ref ilinfo.Mode, IlInfo.ILMode.JIT_MODE);
Expand Down

0 comments on commit d3bc4fc

Please sign in to comment.