Re: [PATCH] Don't duplicate setup code cost when do group-candidate cost calucalution.

2025-06-24 Thread Richard Biener
On Tue, Jun 24, 2025 at 4:39 AM liuhongt wrote: > > From: "hongtao.liu" > > - /* Uses in a group can share setup code, so only add setup cost once. */ > - cost -= cost.scratch; > > It looks like the original code took into account avoiding double > counting, but unfortunately cost is reset ins

[PATCH] Don't duplicate setup code cost when do group-candidate cost calucalution.

2025-06-23 Thread liuhongt
From: "hongtao.liu" - /* Uses in a group can share setup code, so only add setup cost once. */ - cost -= cost.scratch; It looks like the original code took into account avoiding double counting, but unfortunately cost is reset inside the follow loop which invalidates the upper code, and makes