Changeset View
Changeset View
Standalone View
Standalone View
llvm/test/ThinLTO/X86/devirt_promote_legacy.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-lto -thinlto-action=run %t3.o %t4.o --thinlto-save-temps=%t5. \ | ; RUN: llvm-lto -thinlto-action=run %t3.o %t4.o --thinlto-save-temps=%t5. \ | ||||
; RUN: -whole-program-visibility \ | |||||
; RUN: --pass-remarks=. \ | ; RUN: --pass-remarks=. \ | ||||
; RUN: --exported-symbol=test \ | ; RUN: --exported-symbol=test \ | ||||
; RUN: --exported-symbol=test2 \ | ; RUN: --exported-symbol=test2 \ | ||||
; RUN: --exported-symbol=_ZTV1B 2>&1 | FileCheck %s --check-prefix=REMARK | ; RUN: --exported-symbol=_ZTV1B 2>&1 | FileCheck %s --check-prefix=REMARK | ||||
; RUN: llvm-dis %t5.0.4.opt.bc -o - | FileCheck %s --check-prefix=CHECK-IR1 | ; RUN: llvm-dis %t5.0.4.opt.bc -o - | FileCheck %s --check-prefix=CHECK-IR1 | ||||
; RUN: llvm-dis %t5.1.4.opt.bc -o - | FileCheck %s --check-prefix=CHECK-IR2 | ; RUN: llvm-dis %t5.1.4.opt.bc -o - | FileCheck %s --check-prefix=CHECK-IR2 | ||||
; We should devirt call to _ZN1A1nEi once in importing module and once | ; We should devirt call to _ZN1A1nEi once in importing module and once | ||||
Show All 37 Lines |