Two studies in compiler optimisations