Every single modern compiler that I know of creates code that performs better (in the sense that it's faster and the source code is more readable) using a temporary variable.