Hi Helge, I don't think there's an "invariant test motion" optimization, which would consolidate the conditional code block bodies for you. That could be useful in some cases. Especially if your test for swap/don't swap was in a macro, and you really didn't have an easy means at the code level to pull the invariant test condition out of the macro -- so consolidating the conditional bodies by hand would be even more onerous. --Eljay