[PATCH] D24617: [LTO] Prevent asm undefined references to be dropped from the output

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 15 14:31:58 PDT 2016


tejohnson added a comment.

In https://reviews.llvm.org/D24617#544082, @davide wrote:

> Teresa, is this what you had in mind? Also added a ThinLTO test, hopefully it's correct.


Yes, thanks. One suggestion to merge the new tests below.


================
Comment at: test/tools/gold/X86/asm_undefined2_thin.ll:6
@@ +5,3 @@
+; RUN:     --plugin-opt=thinlto -o %t2 %t.o
+; RUN: llvm-dis < %t.o.5.precodegen.bc | FileCheck %s
+
----------------
I suppose since the test is basically the same you could copy these RUN lines into asm_undefined2.ll so it would test both regular and thin LTO.


https://reviews.llvm.org/D24617





More information about the llvm-commits mailing list