[PATCH] D31443: [LTO] Do not reorder global variables unnecessarily during merging

Tobias Edler von Koch via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 3 14:17:19 PDT 2017


On 04/03/2017 03:51 PM, Rafael EspĂ­ndola wrote:
> We don't need a "good reason" and the order in the IR is not "source order".

Please suggest a wording you are comfortable with.

What do you mean by "IR is not in source order"? Clang emits global 
variables in source code order. Optimizations may change this (which is 
what I mean by 'good reason'). Am I missing something?

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project.



More information about the llvm-commits mailing list