Re: [PATCH] x86: Don't allocate stack frame nor align stack if not needed

2019-05-22 Thread Uros Bizjak
On Wed, May 22, 2019 at 5:10 PM H.J. Lu wrote: > > On Wed, May 22, 2019 at 12:31 AM Uros Bizjak wrote: > > > > On Tue, May 21, 2019 at 5:01 PM H.J. Lu wrote: > > > > > > get_frame_size () returns used stack slots during compilation, which > > > may be optimized out later. This patch does the fo

Re: [PATCH] x86: Don't allocate stack frame nor align stack if not needed

2019-05-22 Thread H.J. Lu
true; > > } > > } > > - else if (crtl->max_used_stack_slot_alignment >= 128) > > + else if (crtl->max_used_stack_slot_alignment >= 128 > > + && !cfun->machine->no_stack_frame) > > { > >/* We d

Re: [PATCH] x86: Don't allocate stack frame nor align stack if not needed

2019-05-22 Thread Uros Bizjak
On Tue, May 21, 2019 at 5:01 PM H.J. Lu wrote: > > get_frame_size () returns used stack slots during compilation, which > may be optimized out later. This patch does the followings: > > 1. Add no_stack_frame to machine_function to indicate that the function > doesn't need a stack frame. Can you

[PATCH] x86: Don't allocate stack frame nor align stack if not needed

2019-05-21 Thread H.J. Lu
get_frame_size () returns used stack slots during compilation, which may be optimized out later. This patch does the followings: 1. Add no_stack_frame to machine_function to indicate that the function doesn't need a stack frame. 2. Change ix86_find_max_used_stack_alignment to set no_stack_frame.