Interesting JVM JIT example where the author rewrites code to help the optimiser: http://t.co/9sNIe7d59l (ideally we'd have the reverse!)