Core Performance optimization for with CPU Cache
If the CPU’s guess is wrong, the CPU must undo the execution of the instruction ideally. However, most speculative execution engines do not perfectly undo their execution. For example, some CPUs leave the traces or results of speculative execution in the cache. (Micro-architectural states such as caches are left, while the architectural state is fully recovered)
Speculative Execution Notion