https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82476
--- Comment #6 from Arun Muralidharan <arun11299 at gmail dot com> --- I understand your point on why it chose not to be inlined. I was doing a micro benchmark for a sample application (a interview question basically) and thats when this issue came up. Thanks.