blob: 3b059fd7d880074990bc4e837aee4001b47a787a [file] [log] [blame]
; Test prof-verify for functions without entry count
; RUN: not opt -passes=prof-verify %s -o - 2>&1 | FileCheck %s
define void @foo(i32 %i) {
%c = icmp eq i32 %i, 0
br i1 %c, label %yes, label %no
yes:
ret void
no:
ret void
}
; CHECK: Profile verification failed: function entry count missing (set to 0 if cold)