GLSL function calls, AFAIK, are very very fast. The compiler will tend to optimize as much as it can.

One thing you can do is to compare both and get the binary generated from compilation/linkage...