Replace LinkedList by IntrusiveList to avoid allocations on JIT (#931)
* Replace LinkedList by IntrusiveList to avoid allocations on JIT * Fix wrong replacements
This commit is contained in:
@ -35,7 +35,7 @@ namespace ARMeilleure.Diagnostics
|
||||
|
||||
IncreaseIndentation();
|
||||
|
||||
foreach (BasicBlock block in cfg.Blocks)
|
||||
for (BasicBlock block = cfg.Blocks.First; block != null; block = block.ListNext)
|
||||
{
|
||||
string blockName = GetBlockName(block);
|
||||
|
||||
@ -55,7 +55,7 @@ namespace ARMeilleure.Diagnostics
|
||||
|
||||
IncreaseIndentation();
|
||||
|
||||
foreach (Node node in block.Operations)
|
||||
for (Node node = block.Operations.First; node != null; node = node.ListNext)
|
||||
{
|
||||
string[] sources = new string[node.SourcesCount];
|
||||
|
||||
|
Reference in New Issue
Block a user