[lld] r263181 - [lto] Add a useful test case.

Sean Silva via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 10 17:10:38 PST 2016


Author: silvas
Date: Thu Mar 10 19:10:37 2016
New Revision: 263181

URL: http://llvm.org/viewvc/llvm-project?rev=263181&view=rev
Log:
[lto] Add a useful test case.

This is reduced from an issue found in practice.
The original version of D18012 needed another patch to handle this, but
it now works since we are using a more correct GV->hasAppendingLinkage()
check that Rafael suggested.

This is what remains of that other patch.

Modified:
    lld/trunk/test/ELF/lto/linkage.ll

Modified: lld/trunk/test/ELF/lto/linkage.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/linkage.ll?rev=263181&r1=263180&r2=263181&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/linkage.ll (original)
+++ lld/trunk/test/ELF/lto/linkage.ll Thu Mar 10 19:10:37 2016
@@ -13,3 +13,6 @@ target triple = "x86_64-unknown-linux-gn
 define internal void @ctor() {
   ret void
 }
+
+; Should not try to merge a declaration into the combined module.
+declare i32 @llvm.ctpop.i32(i32)




More information about the llvm-commits mailing list