Re: [PATCH] x86: Properly find the maximum stack slot alignment

2025-04-22 Thread Uros Bizjak
On Sun, Apr 20, 2025 at 11:26 PM H.J. Lu wrote: > > Don't assume that stack slots can only be accessed by stack or frame > registers. We first find all registers defined by stack or frame > registers. Then check memory accesses by such registers, including > stack and frame registers. > > gcc/ >

Re: [PATCH] x86: Properly find the maximum stack slot alignment

2025-04-21 Thread Uros Bizjak
On Sun, Apr 20, 2025 at 11:26 PM H.J. Lu wrote: > > Don't assume that stack slots can only be accessed by stack or frame > registers. We first find all registers defined by stack or frame > registers. Then check memory accesses by such registers, including > stack and frame registers. I've been

[PATCH] x86: Properly find the maximum stack slot alignment

2025-04-20 Thread H.J. Lu
Don't assume that stack slots can only be accessed by stack or frame registers. We first find all registers defined by stack or frame registers. Then check memory accesses by such registers, including stack and frame registers. gcc/ PR target/109780 PR target/109093 * co

Re: [PATCH] x86: Properly find the maximum stack slot alignment

2025-02-12 Thread Uros Bizjak
On Wed, Feb 12, 2025 at 11:06 AM H.J. Lu wrote: > > On Wed, Feb 12, 2025 at 5:28 PM Uros Bizjak wrote: > > > > On Wed, Feb 12, 2025 at 6:25 AM H.J. Lu wrote: > > > > > > Don't assume that stack slots can only be accessed by stack or frame > > > registers. We first find all registers defined by

Re: [PATCH] x86: Properly find the maximum stack slot alignment

2025-02-12 Thread H.J. Lu
On Wed, Feb 12, 2025 at 4:03 PM Sam James wrote: > > "H.J. Lu" writes: > > > Don't assume that stack slots can only be accessed by stack or frame > > registers. We first find all registers defined by stack or frame > > registers. Then check memory accesses by such registers, including > > stack

Re: [PATCH] x86: Properly find the maximum stack slot alignment

2025-02-12 Thread H.J. Lu
On Wed, Feb 12, 2025 at 5:28 PM Uros Bizjak wrote: > > On Wed, Feb 12, 2025 at 6:25 AM H.J. Lu wrote: > > > > Don't assume that stack slots can only be accessed by stack or frame > > registers. We first find all registers defined by stack or frame > > registers. Then check memory accesses by su

Re: [PATCH] x86: Properly find the maximum stack slot alignment

2025-02-12 Thread Uros Bizjak
On Wed, Feb 12, 2025 at 6:25 AM H.J. Lu wrote: > > Don't assume that stack slots can only be accessed by stack or frame > registers. We first find all registers defined by stack or frame > registers. Then check memory accesses by such registers, including > stack and frame registers. > > gcc/ >

Re: [PATCH] x86: Properly find the maximum stack slot alignment

2025-02-12 Thread Sam James
"H.J. Lu" writes: > Don't assume that stack slots can only be accessed by stack or frame > registers. We first find all registers defined by stack or frame > registers. Then check memory accesses by such registers, including > stack and frame registers. > > gcc/ > > PR target/109780 > PR target

Re: [PATCH] x86: Properly find the maximum stack slot alignment

2025-02-11 Thread H.J. Lu
On Wed, Feb 12, 2025 at 3:16 PM Uros Bizjak wrote: > > On Wed, Feb 12, 2025 at 6:25 AM H.J. Lu wrote: > > > > Don't assume that stack slots can only be accessed by stack or frame > > registers. We first find all registers defined by stack or frame > > registers. Then check memory accesses by su

Re: [PATCH] x86: Properly find the maximum stack slot alignment

2025-02-11 Thread Uros Bizjak
On Wed, Feb 12, 2025 at 6:25 AM H.J. Lu wrote: > > Don't assume that stack slots can only be accessed by stack or frame > registers. We first find all registers defined by stack or frame > registers. Then check memory accesses by such registers, including > stack and frame registers. I wonder i

[PATCH] x86: Properly find the maximum stack slot alignment

2025-02-11 Thread H.J. Lu
/i386/pr109093-1.c: Likewise. * gcc.target/i386/pr109780-1.c: Likewise. * gcc.target/i386/pr109780-2.c: Likewise. -- H.J. From 13da9e9be612333b7df7f66cf4b4c1396a64d89d Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 14 Mar 2023 11:41:51 -0700 Subject: [PATCH] x86: Properly find the max

Re: [PATCH] x86: Properly find the maximum stack slot alignment

2023-07-05 Thread Richard Biener via Gcc-patches
On Thu, Jul 6, 2023 at 1:28 AM H.J. Lu via Gcc-patches wrote: > > Don't assume that stack slots can only be accessed by stack or frame > registers. Also check memory accesses from registers defined by > stack or frame registers. > > gcc/ > > PR target/109780 > * config/i386/i386.c

[PATCH] x86: Properly find the maximum stack slot alignment

2023-07-05 Thread H.J. Lu via Gcc-patches
Don't assume that stack slots can only be accessed by stack or frame registers. Also check memory accesses from registers defined by stack or frame registers. gcc/ PR target/109780 * config/i386/i386.cc (ix86_set_with_register_source): New. (ix86_find_all_stack_access): L