Prefetch information is generated for multi-block indirect memory access
chains. A method may include selecting a chain of indirect memory
accesses of a procedure, the chain comprising a head access that does not
depend for its address on another prefetch candidate memory access within
the procedure and an indirect access that depends for its address on the
head access. The method may further include determining a prefetch-ahead
value for the chain, and generating a load operation corresponding to the
head access that specifies a target memory address that is dependent upon
the prefetch-ahead value and an address of the head access. The method
may further include, for a terminal indirect access of the chain,
generating a respective prefetch operation that is dependent for its
address computation on results of preceding load operations in the same
manner as its corresponding terminal indirect access depends upon
preceding accesses in the chain.