A compiler method for the parallel execution of of irregular reductions on scalable shared memory multiprocessors