projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "[llvm-profdata] Add SaturatingAdd/SaturatingMultiply Helper Functions"
[oota-llvm.git]
/
include
/
llvm
/
ProfileData
/
InstrProf.h
diff --git
a/include/llvm/ProfileData/InstrProf.h
b/include/llvm/ProfileData/InstrProf.h
index
384eddd
..
aa100a7
100644
(file)
--- a/
include/llvm/ProfileData/InstrProf.h
+++ b/
include/llvm/ProfileData/InstrProf.h
@@
-226,7
+226,7
@@
struct InstrProfValueSiteRecord {
while (I != IE && I->Value < J->Value)
++I;
if (I != IE && I->Value == J->Value) {
while (I != IE && I->Value < J->Value)
++I;
if (I != IE && I->Value == J->Value) {
- I->Count
= SaturatingAdd(I->Count, J->Count)
;
+ I->Count
+= J->Count
;
++I;
continue;
}
++I;
continue;
}