Which phase of compiler is responsible for register allocation?

Explanation:

Register allocation is done during code generation phase.