PPC NCG: Refactor stack allocation code