summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/Inputs
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2017-06-15 17:26:13 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2017-06-15 17:26:13 +0000
commitdbd2fed6a1a1ae2efb64255fdd0e07a04a2d1f13 (patch)
tree5b04d233e36a1de3205dcd20c07e890c20fb76c0 /clang/test/CodeGen/Inputs
parent587525468d4fc61902965476051019b20fd1621e (diff)
downloadbcm5719-llvm-dbd2fed6a1a1ae2efb64255fdd0e07a04a2d1f13.tar.gz
bcm5719-llvm-dbd2fed6a1a1ae2efb64255fdd0e07a04a2d1f13.zip
Apply summary-based dead stripping to regular LTO modules with summaries.
If a regular LTO module has a summary index, then instead of linking it into the combined regular LTO module right away, add it to the combined summary index and associate it with a special module that represents the combined regular LTO module. Any such modules are linked during LTO::run(), at which time we use the results of summary-based dead stripping to control whether to link prevailing symbols. Differential Revision: https://reviews.llvm.org/D33922 llvm-svn: 305482
Diffstat (limited to 'clang/test/CodeGen/Inputs')
-rw-r--r--clang/test/CodeGen/Inputs/thinlto-multi-module.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/CodeGen/Inputs/thinlto-multi-module.ll b/clang/test/CodeGen/Inputs/thinlto-multi-module.ll
new file mode 100644
index 00000000000..e8dc16a8f57
--- /dev/null
+++ b/clang/test/CodeGen/Inputs/thinlto-multi-module.ll
@@ -0,0 +1,9 @@
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-unknown-linux-gnu"
+
+define void @f2() {
+ ret void
+}
+
+!0 = !{i32 1, !"ThinLTO", i32 0}
+!llvm.module.flags = !{ !0 }
OpenPOWER on IntegriCloud