1cee313d2SEric Christopher; RUN: opt < %s -passes=pgo-instr-gen -S | FileCheck %s 2cee313d2SEric Christopher 37b1d7937SAmy Huangtarget datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" 4cee313d2SEric Christophertarget triple = "x86_64-apple-macosx10.12.0" 5cee313d2SEric Christopher 6cee313d2SEric Christopherdefine i32 @f1() { 7cee313d2SEric Christopher; CHECK-LABEL: @f1 8cee313d2SEric Christopherentry: 9cee313d2SEric Christopher; CHECK: call void @llvm.instrprof.increment 10*9ff36df5SFangrui Song; CHECK-NOT: ptrtoint ptr asm sideeffect 11cee313d2SEric Christopher; CHECK-NOT: call void @llvm.instrprof.value.profile 12cee313d2SEric Christopher; CHECK: tail call void asm sideeffect 13*9ff36df5SFangrui Song tail call void asm sideeffect "", "imr,~{memory},~{dirflag},~{fpsr},~{flags}"(ptr undef) #0 14cee313d2SEric Christopher ret i32 0 15cee313d2SEric Christopher} 16cee313d2SEric Christopher 17cee313d2SEric Christopherdefine i32 @f2() { 18cee313d2SEric Christopherentry: 19cee313d2SEric Christopher; CHECK: call void @llvm.instrprof.increment 20cee313d2SEric Christopher; CHECK-NOT: call void @llvm.instrprof.value.profile 21*9ff36df5SFangrui Song call void (i32, ...) @foo(i32 21) 22cee313d2SEric Christopher ret i32 0 23cee313d2SEric Christopher} 24cee313d2SEric Christopher 25cee313d2SEric Christopherdeclare void @foo(...) #0 26cee313d2SEric Christopher 27cee313d2SEric Christopherattributes #0 = { nounwind } 28