mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +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
9 lines
283 B
LLVM
9 lines
283 B
LLVM
; RUN: llvm-link -S %s %p/Inputs/ctors3.ll -o - | FileCheck %s
|
|
|
|
$foo = comdat any
|
|
%t = type { i8 }
|
|
@foo = global %t zeroinitializer, comdat
|
|
|
|
; CHECK: @llvm.global_ctors = appending global [0 x { i32, void ()*, i8* }] zeroinitializer
|
|
; CHECK: @foo = global %t zeroinitializer, comdat
|