A compiler is provided which effectively performs a data flow optimization process
for a program wherein a plurality of branches and merges are arranged in series,
without incurring a drastic increase in the amount of code. The compiler, and the
method thereof, may be implemented in hardware, software, or both.