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)
commitf1a6a2d9307475b1e1dff3eef355c8fb8486f6e0
treee34db53f988630116303ef53426d1b557a446f23
parent465f4bc2874333444d081386abe50c012eabfe8e
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.

llvm-svn: 201456
clang/lib/CodeGen/CodeGenPGO.cpp
clang/test/CodeGen/Inputs/instr-profile.pgodata