Closed Calvin-L closed 6 years ago
After inlining, implementations often have code like for x in []: ... or if true: .... We should implement a simplification pass that reduces these.
for x in []: ...
if true: ...
Having this as an explicit pass can help simplify codegen, which already does this itself (see visit_SForEach, visit_SIf, and visit_ECond cases).
visit_SForEach
visit_SIf
visit_ECond
This was addressed in #79.
After inlining, implementations often have code like
for x in []: ...
orif true: ...
. We should implement a simplification pass that reduces these.Having this as an explicit pass can help simplify codegen, which already does this itself (see
visit_SForEach
,visit_SIf
, andvisit_ECond
cases).