David Edelsohn <dje....@gmail.com> writes: > On Wed, Jul 29, 2015 at 11:16:40AM +0100, Richard Earnshaw wrote: >> I'm getting a bit worried about the potential performance impact from >> all these indirect function call hooks. This is a good example of when >> it's probably somewhat unnecessary. I doubt that the compiler could >> function correctly if this ever changed in the middle of a function. > > +1
FWIW, the thread has already moved on from the idea of calling this hook each time POINTER_SIZE is used. The idea of caching POINTER_SIZE should if anything make things quicker, since on many modern targets POINTER_SIZE depends on command-line options and the values of those options are tested each time POINTER_SIZE is used. Thanks, Richard