https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109035
--- Comment #4 from chenglulu <chenglulu at loongson dot cn> --- (In reply to Xi Ruoyao from comment #3) > I don't really understand why we should prefer the memory if there is a > REG_EQUIV note, nor why this does not happen with -fPIE. I didn't understand the optimization of this place, but I found that if FRAME_GROWS_DOWNWARD is set to 0, then this problem can be avoided.