Re: [PATCH] cache compute_objsize results in strlen/sprintf (PR 97373)

2020-12-01 Thread Jeff Law via Gcc-patches
On 12/1/20 2:21 PM, Martin Sebor wrote: > On 12/1/20 1:57 PM, Martin Sebor wrote: >> On 11/23/20 2:04 PM, Jeff Law wrote: >>> >>> >>> On 11/4/20 5:58 PM, Martin Sebor via Gcc-patches wrote: To determine the target of a pointer expression and the offset into it, the increasingly widely

Re: [PATCH] cache compute_objsize results in strlen/sprintf (PR 97373)

2020-12-01 Thread Martin Sebor via Gcc-patches
On 12/1/20 1:57 PM, Martin Sebor wrote: On 11/23/20 2:04 PM, Jeff Law wrote: On 11/4/20 5:58 PM, Martin Sebor via Gcc-patches wrote: To determine the target of a pointer expression and the offset into it, the increasingly widely used compute_objsize function traverses the IL following the

Re: [PATCH] cache compute_objsize results in strlen/sprintf (PR 97373)

2020-12-01 Thread Martin Sebor via Gcc-patches
On 11/23/20 2:04 PM, Jeff Law wrote: On 11/4/20 5:58 PM, Martin Sebor via Gcc-patches wrote: To determine the target of a pointer expression and the offset into it, the increasingly widely used compute_objsize function traverses the IL following the DEF statements of pointer variables,

Re: [PATCH] cache compute_objsize results in strlen/sprintf (PR 97373)

2020-11-23 Thread Jeff Law via Gcc-patches
On 11/4/20 5:58 PM, Martin Sebor via Gcc-patches wrote: > To determine the target of a pointer expression and the offset into > it, the increasingly widely used compute_objsize function traverses > the IL following the DEF statements of pointer variables, aggregating > offsets from POINTER_PLUS

Re: [PATCH] cache compute_objsize results in strlen/sprintf (PR 97373)

2020-11-05 Thread Martin Sebor via Gcc-patches
On 11/5/20 8:29 AM, Jakub Jelinek wrote: On Thu, Nov 05, 2020 at 08:20:20AM -0700, Martin Sebor via Gcc-patches wrote: compute_objsize() and the objsz pass are completely independent. The pass is also quite limited in that it doesn't make use of ranges. That limitation was also the main reason

Re: [PATCH] cache compute_objsize results in strlen/sprintf (PR 97373)

2020-11-05 Thread Jakub Jelinek via Gcc-patches
On Thu, Nov 05, 2020 at 08:20:20AM -0700, Martin Sebor via Gcc-patches wrote: > compute_objsize() and the objsz pass are completely independent. > The pass is also quite limited in that it doesn't make use of > ranges. That limitation was also the main reason for introducing > the

Re: [PATCH] cache compute_objsize results in strlen/sprintf (PR 97373)

2020-11-05 Thread Martin Sebor via Gcc-patches
On 11/5/20 12:31 AM, Richard Biener wrote: On Thu, Nov 5, 2020 at 1:59 AM Martin Sebor via Gcc-patches wrote: To determine the target of a pointer expression and the offset into it, the increasingly widely used compute_objsize function traverses the IL following the DEF statements of pointer

Re: [PATCH] cache compute_objsize results in strlen/sprintf (PR 97373)

2020-11-04 Thread Richard Biener via Gcc-patches
On Thu, Nov 5, 2020 at 1:59 AM Martin Sebor via Gcc-patches wrote: > > To determine the target of a pointer expression and the offset into > it, the increasingly widely used compute_objsize function traverses > the IL following the DEF statements of pointer variables, aggregating > offsets from

[PATCH] cache compute_objsize results in strlen/sprintf (PR 97373)

2020-11-04 Thread Martin Sebor via Gcc-patches
To determine the target of a pointer expression and the offset into it, the increasingly widely used compute_objsize function traverses the IL following the DEF statements of pointer variables, aggregating offsets from POINTER_PLUS assignments along the way. It does that for many statements that