]> granicus.if.org Git - clang/commit
PGO: Scale large counters down to 32-bits
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 11 Mar 2014 18:18:10 +0000 (18:18 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 11 Mar 2014 18:18:10 +0000 (18:18 +0000)
commit5644f17e6ac6a9af616475cd80c4e1794b69226e
treee5afce981633b525ca6ae0ee5a4026015392a9ce
parent15f934ed1e757d4eea03ab2a88114524f4a0533d
PGO: Scale large counters down to 32-bits

PGO counters are 64-bit and branch weights are 32-bit.  Scale them down
when necessary, instead of just taking the lower 32 bits.

<rdar://problem/16276448>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203592 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenPGO.cpp
test/Profile/Inputs/c-counter-overflows.profdata [new file with mode: 0644]
test/Profile/c-counter-overflows.c [new file with mode: 0644]