On Thu, Dec 15, 2022 at 12:21:21PM -0500, Siddhesh Poyarekar wrote: > On 2022-12-15 12:09, Jakub Jelinek wrote: > > > -This is a propagation pass similar to CCP that tries to remove calls > > > -to @code{__builtin_object_size} when the size of the object can be > > > -computed at compile-time. This pass is located in > > > -@file{tree-object-size.cc} and is described by > > > +This is a propagation pass similar to CCP that tries to remove calls to > > > +@code{__builtin_object_size} or @code{__builtin_dynamic_object_size} > > > +when the size of the object can be computed at compile-time. This pass > > > > Can be computed at compile-time is only true for __bos, for > > __bdos is if it can be computed. > > How about: > > > This is a propagation pass similar to CCP that tries to remove calls to > @code{__builtin_object_size} when the size of the object can be computed at > compile-time. It also tries to replace calls to > > @code{__builtin_dynamic_object_size} with an expression that evaluates > the size of the object. This pass is located in > @file{tree-object-size.cc} and is described by @code{pass_object_sizes}.
Without the empty space in between and perhaps with replacing size with upper or lower bound for the size of the object in both cases ok. Jakub