The order of global variables is generated in the order of recursively materializing variables if the global variable has the attribute of hasLocalLinkage or hasLinkOnceLinkage during the module merging. In practice, it is often the exact reverse of source order. This new order may cause performance regression.
The change is to preserve the original lexical order for global variables.
clang-tidy: warning: 'auto NewV' can be declared as 'auto *NewV' [llvm-qualified-auto]
not useful