diff options
Diffstat (limited to 'llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp b/llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp index 8c41c728c06..4b0064090cf 100644 --- a/llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp +++ b/llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp @@ -878,7 +878,7 @@ struct VISIBILITY_HIDDEN MemCmpOpt : public LibCallOptimization {      if (Len == 1) { // memcmp(S1,S2,1) -> *LHS - *RHS        Value *LHSV = B.CreateLoad(CastToCStr(LHS, B), "lhsv");        Value *RHSV = B.CreateLoad(CastToCStr(RHS, B), "rhsv"); -      return B.CreateZExt(B.CreateSub(LHSV, RHSV, "chardiff"), CI->getType()); +      return B.CreateSExt(B.CreateSub(LHSV, RHSV, "chardiff"), CI->getType());      }      // memcmp(S1,S2,2) != 0 -> (*(short*)LHS ^ *(short*)RHS)  != 0 | 

