Does compiling code directly on the platform it's intended to be run on improve how well it runs? Specifically, compiling a small program on iPhone instead of on an x86 desktop.
No, it doesn't. The only thing compiling on the iPhone will do differently is take longer to compile and prevent you from doing anything else with your iPhone because iShits can't (yet) multitask.