A heuristic algorithm which identifies loads guaranteed to hit the
processor cache which further provides a "minimal" set of prefetches which
are scheduled/inserted during compilation of a program is disclosed. The
heuristic algorithm of the present invention utilizes the concept of a
"cache line" (i.e., the data chunks received during memory operations) in
conjunction with the concept of "related" memory operations for
determining which prefetches are unnecessary for related memory
operations; thus, generating a minimal number of prefetches for related
memory operations.