mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-12-21 14:30:21 +00:00
- Optimized the speed of the compilation by reducing the zp coalesce to only zeropage allocated registers.
- All mem[x] type allocated memory or registers is ignored. (cherry picked from commit 783bd398190b55b0ccea2be937b50eb185bf51bb)
This commit is contained in:
parent
7098b28cb2
commit
fb77d7629d
@ -143,6 +143,10 @@ public abstract class Pass4MemoryCoalesce extends Pass2Base {
|
||||
// Check the both registers have the same type
|
||||
if(!register1.getType().equals(register2.getType()))
|
||||
return false;
|
||||
if(register1.toString().startsWith("mem"))
|
||||
return false;
|
||||
if(register2.toString().startsWith("mem"))
|
||||
return false;
|
||||
// Check the both registers have the same size
|
||||
if(register1.getBytes() != register2.getBytes())
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user