Inlining calls to complex functions