mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:43:36 +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
10 lines
234 B
LLVM
10 lines
234 B
LLVM
; RUN: llvm-link -S %s %p/Inputs/comdat14.ll -o - | FileCheck %s
|
|
|
|
$c = comdat any
|
|
|
|
@v = global i32 0, comdat ($c)
|
|
|
|
; CHECK: @v = global i32 0, comdat($c)
|
|
; CHECK: @v3 = external global i32
|
|
; CHECK: @v2 = external dllexport global i32
|