Changeset View
Changeset View
Standalone View
Standalone View
test/Bitcode/thinlto-flattened-flag.ll
- This file was added.
; REQUIRES: x86-registered-target | |||||
; First generate four ThinLTO versions of this file, two without flattened | |||||
; profiles and two with. Confirm that the flattened profile flag is set | |||||
; approprately. It doesn't matter for the purposes of the summary analysis | |||||
; whether there actually is a profile passed in. | |||||
; RUN: opt -module-summary %s -o %tNF1.o | |||||
; RUN: llvm-bcanalyzer -dump %tNF1.o | FileCheck %s --check-prefix=NOFLAT | |||||
; RUN: opt -module-summary %s -o %tNF2.o | |||||
; RUN: llvm-bcanalyzer -dump %tNF2.o | FileCheck %s --check-prefix=NOFLAT | |||||
; RUN: opt -module-summary -flattened-profile-used %s -o %tF1.o | |||||
; RUN: llvm-bcanalyzer -dump %tF1.o | FileCheck %s --check-prefix=FLAT | |||||
; RUN: opt -module-summary -flattened-profile-used %s -o %tF2.o | |||||
; RUN: llvm-bcanalyzer -dump %tF2.o | FileCheck %s --check-prefix=FLAT | |||||
; NOFLAT: <FLAGS op0=0/> | |||||
; FLAT: <FLAGS op0=32/> | |||||
; Next check that the flag is propagated onto the combined index as expected. | |||||
; The result should be an OR of the input flags. | |||||
; RUN: llvm-lto2 run %tNF1.o %tNF2.o -o %t.out -save-temps | |||||
; RUN: llvm-bcanalyzer -dump %t.out.index.bc | FileCheck %s --check-prefix=NOFLAT | |||||
; RUN: llvm-lto2 run %tF1.o %tF2.o -o %t.out -save-temps | |||||
; RUN: llvm-bcanalyzer -dump %t.out.index.bc | FileCheck %s --check-prefix=FLAT | |||||
; RUN: llvm-lto2 run %tNF1.o %tF2.o -o %t.out -save-temps | |||||
; RUN: llvm-bcanalyzer -dump %t.out.index.bc | FileCheck %s --check-prefix=FLAT | |||||
; RUN: llvm-lto2 run %tF1.o %tNF2.o -o %t.out -save-temps | |||||
; RUN: llvm-bcanalyzer -dump %t.out.index.bc | FileCheck %s --check-prefix=FLAT | |||||
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" | |||||
target triple = "x86_64-unknown-linux-gnu" |