Re: [PATCH] x86: Also check non-local variable for argument-linked memory
Uros Bizjak <[email protected]> Sat, 1 Aug 2026 10:49:35 +0200
| Newsgroups | gmane.comp.gcc.patches |
|---|---|
| Message-ID | <CAFULd4Z5ets8+V3gQN2iAGEq4=0kX_kEJ19n_n1cpfz8eQ+vQQ@mail.gmail.com> |
On Sat, Aug 1, 2026 at 5:12 AM H.J. Lu <[email protected]> wrote: > > When checking if a register argument is used as local variable, also > return true if non-local variable is the source of the argument-linked > memory store. > > gcc/ > > PR target/126529 > * config/i386/i386.cc (ix86_spill_register_argument_p): Also > check non-local variable source for the argument-linked memory > store. > > gcc/testsuite/ > > PR target/126529 > * gcc.target/i386/pr126529.c: New test. This is the third patch in the same area, so it IMO points to a more systematic issue. Please find someone else that is able to thoroughly review the patch (and the core issue that lies behind these problems) from the generic middle-end side of the compiler. Uros.