Re: [PATCH 0/2] x86: Add a pass to fold tail call

2025-02-13 Thread H.J. Lu
On Thu, Feb 13, 2025 at 5:31 PM Uros Bizjak wrote: > > On Thu, Feb 13, 2025 at 1:58 AM H.J. Lu wrote: > > > > x86 conditional branch (jcc) target can be either a label or a symbol. > > Add a pass to fold tail call with jcc by turning: > > > > jcc .L6 > > ... > > .L6: > > jmp

Re: [PATCH 0/2] x86: Add a pass to fold tail call

2025-02-13 Thread Uros Bizjak
On Thu, Feb 13, 2025 at 1:58 AM H.J. Lu wrote: > > x86 conditional branch (jcc) target can be either a label or a symbol. > Add a pass to fold tail call with jcc by turning: > > jcc .L6 > ... > .L6: > jmp tailcall > > into: > > jcc tailcall > > After basic block