|
|
|
|
|
by mikemike
1352 days ago
|
|
You may want to clarify that in the GitHub repo, too. See my issue there. If you want to go the didactic route, then consider documenting the improvements over the naive implementation: register hinting, register priorities (PHI), two-headed register picking, fixed register picking, optimized register picking for 2-operand instructions (x86/x64), register pair picking, ABI calling-conventions, weak allocations, cost heuristics, eviction heuristics, lazy/eager spill/restore, rematerialization, register shuffling (PHI) with cycle breaking, register renaming, etc. That's all in ~2000 lines of lj_asm.c. |
|
Given that your Github issue [1] was originally titled "Take Down Notice", I'm now hesitant to read any LuaJIT code.
If I read lj_asm.c and learn from it, will you try to take down any register allocation code that I write in the future?
[1] https://github.com/mkeeter/ssra/issues/1