1; REQUIRES: x86-registered-target 2; RUN: opt -module-summary %s -o %t.o 3 4; Ensure dead stripping performed flag is set on distributed index 5; RUN: llvm-lto2 run %t.o -o %t.out -thinlto-distributed-indexes \ 6; RUN: -r %t.o,glob,plx 7; RUN: llvm-bcanalyzer -dump %t.o.thinlto.bc | FileCheck %s --check-prefix=WITHDEAD 8; WITHDEAD: <FLAGS op0=1/> 9 10; Ensure dead stripping performed flag is not set on distributed index 11; when option used to disable dead stripping computation. 12; RUN: llvm-lto2 run %t.o -o %t.out -thinlto-distributed-indexes \ 13; RUN: -r %t.o,glob,plx -compute-dead=false 14; RUN: llvm-bcanalyzer -dump %t.o.thinlto.bc | FileCheck %s --check-prefix=NODEAD 15; NODEAD: <FLAGS op0=0/> 16 17target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 18target triple = "x86_64-unknown-linux-gnu" 19 20@glob = global i32 0 21