If there are 2 of you, one from each company, with the identical role but only one job remaining after the merger, then the company would often hold a "run off" where you both re-apply for the one job.
As the sitting tenant you should have a good headstart in that process, assuming you have performed well in the past!