When does it make sense to use Loop fission/distribution if I am compiling for a single core processor?
+2
A:
Performance wise? No, it will almost certainly introduce overhead.
Mitch Wheat
2009-05-06 04:22:20
A:
See comp.compilers for the standard answers.
In addition to that, an odd-ball case that I could think up might be if there is a potential that one of the iterations might block. (e.g. does dynamic memory allocation)
Note that that case is more "abuse" of an easy language "paralel for" than a real numerical reason. (easier to use "for" than to manually do it using threads, even if the FOR waits for all threads to complete)
Marco van de Voort
2009-05-07 19:40:13