Age | Commit message (Collapse) | Author |
|
Move the accept method for hierarchical visitors from ir_dereference
to the derived classes. This was mostly straight-forward, but I
suspect that ir_dead_code_local may be broken now.
|
|
|
|
The output of all test cases was verified to be the same using diff.
|
|
find_dead_code appears to be an open-coded version of visit_exec_list
that was implemented first.
|
|
|
|
|
|
This pass only works on assignments where the variable is never
referenced. There is no code flow analysis, so it can't do a better
job of avoiding redundant assignments.
For now, the optimizer only does do_dead_code_unlinked(), so it won't
trim the builtin variable list or initializers outside of the scope of
functions. This is because we don't have the visibility into other
functions that might get linked in in order to eliminate work on
global variables.
|