I think there was a story about a mainframe salesman who at demonstration time with the customer started the usual demo program. The perspective customer then suggested to leave for lunch and come back when the machine had finished—but then the printer already started to churn out pages, after just a few seconds. Turned out the new compiler was smarter than the old one and had simply erased all the inconsequential computations of the demo code which made it look like magic.
Apocryphal, from memory, many details probably wrong.