mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-21 11:11:42 +00:00

Summary: 1. Use stream 0 only for combined module. Previously if combined module was not processes ThinLTO used the stream for own output. However small changes in input, could trigger combined module and shuffle outputs making life of llvm::LTO harder. 2. Always process combined module and write output to stream 0. Processing empty combined module is cheap and allows llvm::LTO users to avoid implementing processing which is already done in llvm::LTO. Subscribers: mehdi_amini, inglorion, eraman, hiraditya Differential Revision: https://reviews.llvm.org/D41267 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@320905 91177308-0d34-0410-b5e6-96231b3b80d8
12 lines
287 B
LLVM
12 lines
287 B
LLVM
; RUN: opt -module-summary -o %t %s
|
|
; RUN: llvm-lto2 run %t -O0 -r %t,foo,px -o %t2
|
|
; RUN: llvm-nm %t2.1 | FileCheck %s
|
|
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
; CHECK: W foo
|
|
define linkonce_odr void @foo() {
|
|
ret void
|
|
}
|