If Compy Swarm leaves the battlefield before its triggered ability resolves, the token will still enter the battlefield as a copy of Compy Swarm, using Compy Swarm's copiable values from when it was last on the battlefield.