LLVM IR allocation optimisation

I couldn’t find any straight answers about this, but is modern LLVM (3.7.1 in my case) “smart enough” to automatically handle “temporary variable” allocations as efficiently as possible without me needing to put them all at the very start of the function? or is building IR with allocations as they are in the original code (ie; scattered throughout the function’s code) still “problematic” when it comes to performance?

  • Paul

Looks like you should refer to: http://llvm.org/docs/Frontend/PerformanceTips.html#use-of-allocas