mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-11-29 02:50:11 +00:00
Optimized logic for speed
This commit is contained in:
parent
fb77d7629d
commit
7e5b2caa37
@ -143,9 +143,7 @@ public abstract class Pass4MemoryCoalesce extends Pass2Base {
|
|||||||
// Check the both registers have the same type
|
// Check the both registers have the same type
|
||||||
if(!register1.getType().equals(register2.getType()))
|
if(!register1.getType().equals(register2.getType()))
|
||||||
return false;
|
return false;
|
||||||
if(register1.toString().startsWith("mem"))
|
if(register1.getType() == Registers.RegisterType.MAIN_MEM)
|
||||||
return false;
|
|
||||||
if(register2.toString().startsWith("mem"))
|
|
||||||
return false;
|
return false;
|
||||||
// Check the both registers have the same size
|
// Check the both registers have the same size
|
||||||
if(register1.getBytes() != register2.getBytes())
|
if(register1.getBytes() != register2.getBytes())
|
||||||
|
Loading…
Reference in New Issue
Block a user