5 ms·
Hmm, what's the advantage of doing memory renaming for unretired stores? Won't the value just be forwarded from the store buffer? The patent is a great resourc
by millstone 6y ago
Hmm, what's the advantage of doing memory renaming for unretired stores? Won't the value just be forwarded from the store buffer?
The patent is a great resource, thanks for that. But I think it supports my point when it suggests that memory renaming may persist indefinitely:
Alternatively, reclamation of the original physical register could be delayed to facilitate later memory renaming.
and later:
...the MRT may always retain physical registers of N past store operations...the physical register is reclaimed to the free list when it exits the MRT, for example, when it is no longer one of the N most recent store operations.
So it's possible. I don't think we know from Agner's work whether AMD went this route or not.
- gpderetta 6y agoStore forwarding is slower, it is usually as fast a reading from L1 directly in the best case (4-5 cycles). This optimization has a latency of 0-1 cycles.