brintos

brintos / llvm-project-archived public Read only

0
0
Text · 723 B · b5ceb46 Raw
23 lines · plain
1; RUN: split-file %s %t2; RUN: not opt -passes=ctx-instr-gen,ctx-instr-lower -profile-context-root=the_func -S %t/musttail.ll -o - 2>&1 | FileCheck %s3; RUN: not opt -passes=ctx-instr-gen,ctx-instr-lower -profile-context-root=the_func -S %t/unreachable.ll -o - 2>&1 | FileCheck %s4; RUN: not opt -passes=ctx-instr-gen,ctx-instr-lower -profile-context-root=the_func -S %t/noreturn.ll -o - 2>&1 | FileCheck %s5 6;--- musttail.ll7declare void @foo()8 9define void @the_func() {10  musttail call void @foo()11  ret void12}13;--- unreachable.ll14define void @the_func() {15  unreachable16}17;--- noreturn.ll18define void @the_func() noreturn {19  unreachable20}21 22; CHECK: error: [ctxprof] The function the_func was indicated as context root23