On Tue, 2015-09-22 at 22:57 +0200, Christophe Leroy wrote:Right, but is that so complicated to say: if we did nothing in the loop, no need to sync ?
>Here is what I get in asm. First one is with "if (i) mb();". We see gccI was more concerned with keeping the code simple than the asm output.
>puts a beqlr. This is the form that is closest to what we had in the
>former misc_32.S
>Second one if with "mb()". Here we get a branch to sync for a useless sync