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:
parent
e9a37ca6a8
commit
e5f78fb1d4
18 changed files with 365 additions and 198 deletions
|
@ -157,11 +157,11 @@ namespace ARMeilleure.CodeGen.X86
|
|||
|
||||
UnwindInfo unwindInfo = WritePrologue(context);
|
||||
|
||||
foreach (BasicBlock block in cfg.Blocks)
|
||||
for (BasicBlock block = cfg.Blocks.First; block != null; block = block.ListNext)
|
||||
{
|
||||
context.EnterBlock(block);
|
||||
|
||||
foreach (Node node in block.Operations)
|
||||
for (Node node = block.Operations.First; node != null; node = node.ListNext)
|
||||
{
|
||||
if (node is Operation operation)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue