[PGO] Revert revision r254021,r254028,r254035
[oota-llvm.git] / test / Transforms / PGOProfile / checksum_mismatch.ll
1 ; RUN: llvm-profdata merge %S/Inputs/single_bb.proftext -o %T/single_bb.profdata
2 ; RUN: opt < %s -pgo-instr-use -pgo-profile-file=%T/single_bb.profdata -S 2>&1 | FileCheck %s
3
4 ; CHECK: Function control flow change detected (hash mismatch) _Z9single_bbv
5 ; CHECK: No profile data available for function _ZL8uncalledii
6
7 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
8 target triple = "x86_64-unknown-linux-gnu"
9
10 define i32 @_Z9single_bbv() {
11 entry:
12   ret i32 0
13 }
14
15 define i32 @_ZL8uncalledii(i32 %i, i32 %j) {
16   %mul = mul nsw i32 %i, %j
17   ret i32 %mul
18 }