mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
673715d427
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. Reviewed By: jdoerfert, dexonsmith Differential Revision: https://reviews.llvm.org/D94202
8 lines
238 B
LLVM
8 lines
238 B
LLVM
; RUN: llvm-link -S %s %p/Inputs/ctors2.ll -o - | FileCheck %s
|
|
|
|
$foo = comdat any
|
|
@foo = global i8 0, comdat
|
|
|
|
; CHECK: @llvm.global_ctors = appending global [0 x { i32, void ()*, i8* }] zeroinitializer
|
|
; CHECK: @foo = global i8 0, comdat
|