mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-14 23:48:49 +00:00
c9ad3ab624
The pass used to be enabled by default with CodeGenOpt::Less (-O1). This is too aggressive, considering the pass indiscriminately merges all globals together. Currently, performance doesn't always improve, and, on code that uses few globals (e.g., the odd file- or function- static), more often than not is degraded by the optimization. Lengthy discussion can be found on llvmdev (AArch64-focused; ARM has similar problems): http://lists.cs.uiuc.edu/pipermail/llvmdev/2015-February/082800.html Also, it makes tooling and debuggers less useful when dealing with globals and data sections. GlobalMerge needs to better identify those cases that benefit, and this will be done separately. In the meantime, move the pass to run with -O3 rather than -O1, on both ARM and AArch64. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233024 91177308-0d34-0410-b5e6-96231b3b80d8
11 lines
453 B
LLVM
11 lines
453 B
LLVM
; RUN: llc < %s -mtriple=thumbv7-apple-darwin10 -O3 | FileCheck %s
|
|
; CHECK: .zerofill __DATA,__bss,__MergedGlobals,16,2
|
|
|
|
@prev = external global [0 x i16]
|
|
@max_lazy_match = internal unnamed_addr global i32 0, align 4
|
|
@read_buf = external global i32 (i8*, i32)*
|
|
@window = external global [0 x i8]
|
|
@lookahead = internal unnamed_addr global i32 0, align 4
|
|
@eofile.b = internal unnamed_addr global i32 0
|
|
@ins_h = internal unnamed_addr global i32 0, align 4
|