]> granicus.if.org Git - postgresql/commit
Add pg_attribute_always_inline.
authorAndres Freund <andres@anarazel.de>
Wed, 13 Dec 2017 23:34:20 +0000 (15:34 -0800)
committerAndres Freund <andres@anarazel.de>
Wed, 13 Dec 2017 23:46:02 +0000 (15:46 -0800)
commitdbb3d6f0102e0aca7575ff864450fca57ac85517
treedcb394c503f8a0ac93e1b63d2eab1b7b99e66479
parent923e8dee88ada071fe41541e83f121ead4baf7f8
Add pg_attribute_always_inline.

Sometimes it is useful to be able to insist that the compiler inline a
function that its normal cost analysis would not normally choose to inline.
This can be useful for instantiating different variants of a function that
remove branches of code by constant folding.

Author: Thomas Munro
Reviewed-By: Andres Freund
Discussion: https://postgr.es/m/CAEepm=09rr65VN+cAV5FgyM_z=D77Xy8Fuc9CDDDYbq3pQUezg@mail.gmail.com
src/include/c.h