Quantum Chromodynamics, the theory of the nuclear forces, is simulated on a space-time lattice by means of a Hybrid Monte Carlo algorithm which incorporates dynamical quarks exactly. The large computational needs of the program necessitate to use modern supercomputers like the CRAY Y-MP that achieve their high computing speed by using both vector and parallel hardware. This paper gives a short introduction into the CRAY Y-MP system architecture and the autotasking concept which offers a way for finding automatically parallelism in existing FORTRAN programs. In detail, the paper describes the application as well as the optimization and transformation process which had to be done to improve the performance. After some code modifications a speedup of nearly 7 on a CRAY Y-MP8/832 could be achieved, leading to a performance of about 1.65 GFLOPS.