Skip to content
  • Jan Stolarek's avatar
    Merge cgTailCall and cgLneJump into one function · 388e14e2
    Jan Stolarek authored
    Previosly logic of these functions was sth like this:
    
      cgIdApp x = case x of
                    A -> cgLneJump x
                    _ -> cgTailCall x
    
      cgTailCall x = case x of
                       B -> ...
                       C -> ...
                       _ -> ...
    
    After merging there is no nesting of cases:
    
      cgIdApp x = case x of
                    A -> -- body of cgLneJump
                    B -> ...
                    C -> ...
                    _ -> ...
    388e14e2