[PATCH v8 07/12] Enable musttail tail conversion even when not optimizing
Andi Kleen
ak@linux.intel.com
Mon Jul 8 15:46:33 GMT 2024
On Mon, Jul 08, 2024 at 05:27:53PM +0200, Richard Biener wrote:
>
>
> > Am 08.07.2024 um 17:22 schrieb Andi Kleen <ak@linux.intel.com>:
> >
> > On Mon, Jul 08, 2024 at 08:53:27AM +0200, Richard Biener wrote:
> >> Ah, I see. So this pass is responsible for both -O0 and
> >> -fno-optimized-sibling-calls.
> >> But I'm quite sure the other pass doesn't run with -O0
> >> -foptimize-sibling-calls, does it?
> >
> > It does run:
> >
> > ./cc1 -O0 -fdump-passes -foptimize-sibling-calls t.c 2>&1 | grep tail
> > tree-tailr1 : ON
> > tree-tailr2 : ON
> > tree-tailc : ON
>
> I would not trust -fdump-passes, IIRC that just executes the gate functions.
You're right it's not invoked according to gdb.
So the musttail gate needs a || optimize == 0.
-Andi
More information about the Gcc-patches
mailing list