Store of global named registers are always calls to llvm.write_register intrinsic. Normally, it is like in following C code.
register struct global_data *gd asm ("gp");
void arch_setup_gd(struct global_data *gd_ptr)
{
gd = gd_ptr;
}This patch is to avoid to save/restore those global named registers which are callee-saved registers.
This is also one of those not-actually serialized in MIR fields