Collect and coalesce DBG_VALUE instructions before emitting the function.