On 1/31/25 10:13 AM, Aleksandar Rakic wrote:
From: Andrew Bennett <andrew.benn...@imgtec.com>
GCC can modify a rtx which was created using stack_pointer_rtx.
This means that just doing a straight address comparision of a rtx
against stack_pointer_rtx to see whether it is the stack pointer
register will not be correct in all cases.
Umm, no. There is one and only one stack_pointer_rtx. If something is
modifying stack_pointer_rtx, then that's a bug. This feels like it's
papering over a problem elsewhere. At the least it would need a better
explanation of how/why you're getting addresses that reference the same
hard register as the stack pointer, but which aren't stack_pointer_rtx.
I vaguely recall a problem in this space from regrename.cc, but I
thought we fixed that long ago.
jeff