summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM/global-merge.ll
diff options
context:
space:
mode:
authorHaicheng Wu <haicheng@codeaurora.org>2018-05-19 18:00:02 +0000
committerHaicheng Wu <haicheng@codeaurora.org>2018-05-19 18:00:02 +0000
commit69ba0613f2b9ae20fc00fc547fd125d52629d5a6 (patch)
treea12a88faf0947c93cc6ce5f2d3b6c9ee2ff367a4 /llvm/test/CodeGen/ARM/global-merge.ll
parent9968e0dd4975d3939e7810ac9e6c52cea7f1aeb1 (diff)
downloadbcm5719-llvm-69ba0613f2b9ae20fc00fc547fd125d52629d5a6.tar.gz
bcm5719-llvm-69ba0613f2b9ae20fc00fc547fd125d52629d5a6.zip
[GlobalMerge] Exit early if only one global is to be merged
To save some compilation time and prevent some unnecessary changes. Differential Revision: https://reviews.llvm.org/D46640 llvm-svn: 332813
Diffstat (limited to 'llvm/test/CodeGen/ARM/global-merge.ll')
-rw-r--r--llvm/test/CodeGen/ARM/global-merge.ll8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/ARM/global-merge.ll b/llvm/test/CodeGen/ARM/global-merge.ll
index 9b41e709f2f..f19be03f302 100644
--- a/llvm/test/CodeGen/ARM/global-merge.ll
+++ b/llvm/test/CodeGen/ARM/global-merge.ll
@@ -52,23 +52,23 @@ declare i8* @__cxa_begin_catch(i8*)
declare void @__cxa_end_catch()
+; CHECK: g3:
; CHECK: _MergedGlobals:
@g1 = internal global i32 1
@g2 = internal global i32 2
; Make sure that the complete variable fits within the range of the maximum
; offset. Having the starting offset in range is not sufficient.
-; When this works properly, @g3 is placed in a separate chunk of merged globals.
-; CHECK: _MergedGlobals.1:
+; When this works properly, @g3 is not merged.
@g3 = internal global [30 x i32] [ i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10 ], align 4
; Global variables that can be placed in BSS should be kept together in a
; separate pool of merged globals.
-; CHECK: _MergedGlobals.2
+; CHECK: _MergedGlobals.1
@g4 = internal global i32 0
@g5 = internal global i32 0
; Global variables that are constant can be merged together
-; CHECK: _MergedGlobals.3
+; CHECK: _MergedGlobals.2
@g6 = internal constant [12 x i32] zeroinitializer, align 4
@g7 = internal constant [12 x i32] zeroinitializer, align 4
OpenPOWER on IntegriCloud