This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
It will be worthwhile if the basic block is a loop body. It might make sense to prefetch something used in the next loop iteration. Actually that's what I am trying to do for memcpys.
in that case, the placement of the prefetch inside the loop body is more or less irrelevant, no?
loop over cache lines (x += cache_line_size, y += cache_line_size): copy cache line x to y read prefetch x + cache_line_size write prefetch y + cache_line_size
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |