Moved global register saving from the backend to codeGen