Fixed tail recursion optimization.
authorMichael Beck <mm.beck@gmx.net>
Sun, 3 Apr 2011 16:44:25 +0000 (18:44 +0200)
committerMichael Beck <mm.beck@gmx.net>
Sun, 3 Apr 2011 16:44:25 +0000 (18:44 +0200)
commit03a84e84ef690484755dec74de61ab9b117fe913
tree71724b12e15a78b87fdb9546e9a12793ec6d2723
parentb7b24e372a1338ecd5eb26bdd285a8cbe7b1fec9
Fixed tail recursion optimization.

- use get_r/set_r instead of get_/set_* functions, so we
  can operate without current_ir_graph set
- set current_ir_graph, but only for debugging now
- fixed wrong usage of indexes for local SSA variables
- placed resorce checking at the right plaace
- removed #if 0'ed debug code and replace it by DB()
- fixed doxygen comments
ir/opt/tailrec.c