Re: [PATCH v6 1/4] tree-object-size: Support dynamic sizes in conditions

2022-01-11 Thread Siddhesh Poyarekar
On 11/01/2022 15:13, Jakub Jelinek wrote: On Tue, Jan 11, 2022 at 02:27:47PM +0530, Siddhesh Poyarekar wrote: Handle GIMPLE_PHI and conditionals specially for dynamic objects, returning PHI/conditional expressions instead of just a MIN/MAX estimate. This makes the returned object size variable

Re: [PATCH v6 1/4] tree-object-size: Support dynamic sizes in conditions

2022-01-11 Thread Jakub Jelinek via Gcc-patches
On Tue, Jan 11, 2022 at 02:27:47PM +0530, Siddhesh Poyarekar wrote: > Handle GIMPLE_PHI and conditionals specially for dynamic objects, > returning PHI/conditional expressions instead of just a MIN/MAX > estimate. > > This makes the returned object size variable for loops and conditionals, > so

[PATCH v6 1/4] tree-object-size: Support dynamic sizes in conditions

2022-01-11 Thread Siddhesh Poyarekar
Handle GIMPLE_PHI and conditionals specially for dynamic objects, returning PHI/conditional expressions instead of just a MIN/MAX estimate. This makes the returned object size variable for loops and conditionals, so tests need to be adjusted to look for precise size in some cases.