[compiler-rt] r257147 - [PGO] Use new macro introduced/NFC

Xinliang David Li via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 7 22:03:19 PST 2016


Author: davidxl
Date: Fri Jan  8 00:03:19 2016
New Revision: 257147

URL: http://llvm.org/viewvc/llvm-project?rev=257147&view=rev
Log:
[PGO] Use new macro introduced/NFC

Modified:
    compiler-rt/trunk/lib/profile/InstrProfilingValue.c

Modified: compiler-rt/trunk/lib/profile/InstrProfilingValue.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfilingValue.c?rev=257147&r1=257146&r2=257147&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfilingValue.c (original)
+++ compiler-rt/trunk/lib/profile/InstrProfilingValue.c Fri Jan  8 00:03:19 2016
@@ -107,7 +107,7 @@ __llvm_profile_instrument_target(uint64_
     ++VDataCount;
   }
 
-  if (VDataCount >= UCHAR_MAX)
+  if (VDataCount >= INSTR_PROF_MAX_NUM_VAL_PER_SITE)
     return;
 
   CurrentVNode = (ValueProfNode *)calloc(1, sizeof(ValueProfNode));




More information about the llvm-commits mailing list