codegen uses alias analysis to generate better code

This commit is contained in:
Araq 2011-12-10 01:06:32 +01:00
commit af792da0bb
14 changed files with 166 additions and 113 deletions

View file

@ -155,9 +155,7 @@ proc SameValue*(a, b: PNode): bool =
if b.kind in {nkFloatLit..nkFloat64Lit}: result = a.floatVal == b.floatVal
of nkStrLit..nkTripleStrLit:
if b.kind in {nkStrLit..nkTripleStrLit}: result = a.strVal == b.strVal
else:
debug a
debug b
else:
InternalError(a.info, "SameValue")
proc leValue*(a, b: PNode): bool =