1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-12-22 06:29:23 +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:
Flight_Control 2023-03-29 07:00:14 +02:00
parent 7098b28cb2
commit fb77d7629d

View File

@ -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;