In his talk, number 2 got inlined and number 1 did not
I can't imagine any modern compiler not inlining a function like that. Something else must be going on, like a bug or bad heurisic on an old compiler.