]> granicus.if.org Git - clang/commit
PGO: fix a bug in parsing pgo data.
authorManman Ren <manman.ren@gmail.com>
Sat, 15 Feb 2014 01:29:02 +0000 (01:29 +0000)
committerManman Ren <manman.ren@gmail.com>
Sat, 15 Feb 2014 01:29:02 +0000 (01:29 +0000)
commit8b8ec99047cd22fc8c8155ac6cb5fe9cd2146162
treedc2fb325efb86e713cd191211c7219461b6c82e5
parentec7248c93fa7188e326de3e2e6d883e9d2dc890d
PGO: fix a bug in parsing pgo data.

When a function has a single counter, we will offset the pointer by 1 when
parsing the next function. If a function has multiple counters, we are
okay after skipping rest of the counters.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201456 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenPGO.cpp
test/CodeGen/Inputs/instr-profile.pgodata