Re:AMD CEO says U.S.-made TSMC chips are 5%-20% more expensi...
by wbl on Saturday July 26, 2025 @02:08AM
(#44691778)
The compiler doesn't know the dynamic state of the CPU memory hierarchy and you don't want it to. Even the CPU doesn't know until it finds out how long a load will take.
Meanwhile the CPU probably can't do a loop invariant hoist in a reasonable way or understand high level semantics.
Either have a stupid ISA and do all the work ahead-of-time with way more compute time to optimize or don't optimize and have a higher level ISA, that also hs concepts like pointer provenance.
The current state seams like a local minima with both having ahead-of-time optimization, but the ISA does it's thing anyways and also the compiler throwing much of the information away with OoO analysis being time-critical.