Don’t be stupid

Good compilers are complicated, and generating good code is hard.  Clever optimisations play their part, but it can be equally important to not do things that are stupid. Back in March I noticed this awful code begin generated by TraceMonkey for access-fannkuch.js, one of the SunSpider benchmarks: ld16 = ld sp[-152] sti sp[-152] = ld16 … Continue reading Don’t be stupid