* silence compiletime warning

* refactored cpu binding

* formatted code
This commit is contained in:
Dominik Maier
2020-07-31 18:17:03 +02:00
committed by GitHub
parent 185f443659
commit 729445b64f
2 changed files with 115 additions and 118 deletions

View File

@ -358,7 +358,7 @@ bool CompareTransform::transformCmps(Module &M, const bool processStrcmp,
Value * VarStr;
bool HasStr1 = getConstantStringInfo(Str1P, Str1);
bool HasStr2 = getConstantStringInfo(Str2P, Str2);
uint64_t constStrLen, constSizedLen, unrollLen;
uint64_t constStrLen, unrollLen, constSizedLen = 0;
bool isMemcmp =
!callInst->getCalledFunction()->getName().compare(StringRef("memcmp"));
bool isSizedcmp = isMemcmp ||