Easwaran Raman | f1f1adc | 2018-12-13 19:54:27 +0000 | [diff] [blame] | 1 | ; REQUIRES: x86-registered-target |
| 2 | ; RUN: opt -module-summary %s -o %t.o |
| 3 | |
| 4 | ; Ensure synthetic entry count flag is not set on distributed index |
| 5 | ; RUN: llvm-lto2 run %t.o -o %t.out -thinlto-distributed-indexes \ |
| 6 | ; RUN: -r %t.o,glob,plx -compute-dead=false |
| 7 | ; RUN: llvm-bcanalyzer -dump %t.o.thinlto.bc | FileCheck %s --check-prefix=NOSYNTHETIC |
| 8 | ; NOSYNTHETIC: <FLAGS op0=0/> |
| 9 | |
| 10 | ; Ensure synthetic entry count flag is set on distributed index |
| 11 | ; when option used to enable synthetic count propagation |
| 12 | ; RUN: llvm-lto2 run %t.o -o %t.out -thinlto-distributed-indexes \ |
| 13 | ; RUN: -r %t.o,glob,plx -thinlto-synthesize-entry-counts \ |
| 14 | ; RUN: -compute-dead=false |
| 15 | ; RUN: llvm-bcanalyzer -dump %t.o.thinlto.bc | FileCheck %s --check-prefix=HASSYNTHETIC |
| 16 | ; HASSYNTHETIC: <FLAGS op0=4/> |
| 17 | |
| 18 | target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" |
| 19 | target triple = "x86_64-unknown-linux-gnu" |
| 20 | |
| 21 | @glob = global i32 0 |