Changeset View
Changeset View
Standalone View
Standalone View
llvm/test/ThinLTO/X86/devirt_promote.ll
; REQUIRES: x86-registered-target | ; REQUIRES: x86-registered-target | ||||
; Test devirtualization requiring promotion of local targets, where the | ; Test devirtualization requiring promotion of local targets, where the | ||||
; promotion is required by one devirtualization and needs to be updated | ; promotion is required by one devirtualization and needs to be updated | ||||
; for a second devirtualization in the defining module as a post-pass | ; for a second devirtualization in the defining module as a post-pass | ||||
; update. | ; update. | ||||
; Generate unsplit module with summary for ThinLTO index-based WPD. | ; Generate unsplit module with summary for ThinLTO index-based WPD. | ||||
; RUN: opt -thinlto-bc -o %t3.o %s | ; RUN: opt -thinlto-bc -o %t3.o %s | ||||
; RUN: opt -thinlto-bc -o %t4.o %p/Inputs/devirt_promote.ll | ; RUN: opt -thinlto-bc -o %t4.o %p/Inputs/devirt_promote.ll | ||||
; RUN: llvm-lto2 run %t3.o %t4.o -save-temps -use-new-pm -pass-remarks=. \ | ; RUN: llvm-lto2 run %t3.o %t4.o -save-temps -use-new-pm -pass-remarks=. \ | ||||
; RUN: -whole-program-visibility \ | |||||
; RUN: -wholeprogramdevirt-print-index-based \ | ; RUN: -wholeprogramdevirt-print-index-based \ | ||||
; RUN: -o %t5 \ | ; RUN: -o %t5 \ | ||||
; RUN: -r=%t3.o,test,px \ | ; RUN: -r=%t3.o,test,px \ | ||||
; RUN: -r=%t4.o,_ZN1B1fEi,p \ | ; RUN: -r=%t4.o,_ZN1B1fEi,p \ | ||||
; RUN: -r=%t4.o,test2,px \ | ; RUN: -r=%t4.o,test2,px \ | ||||
; RUN: -r=%t4.o,_ZTV1B,px \ | ; RUN: -r=%t4.o,_ZTV1B,px \ | ||||
; RUN: 2>&1 | FileCheck %s --check-prefix=REMARK --check-prefix=PRINT | ; RUN: 2>&1 | FileCheck %s --check-prefix=REMARK --check-prefix=PRINT | ||||
; RUN: llvm-dis %t5.1.4.opt.bc -o - | FileCheck %s --check-prefix=CHECK-IR1 | ; RUN: llvm-dis %t5.1.4.opt.bc -o - | FileCheck %s --check-prefix=CHECK-IR1 | ||||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |