From e6d768f8615d26e035e42ec08a19ba74f2c84e6f Mon Sep 17 00:00:00 2001 From: Sanjay Patel Date: Tue, 17 Nov 2015 18:46:56 +0000 Subject: [PATCH] fix typos; NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253359 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/InstCombine/InstCombineCasts.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Transforms/InstCombine/InstCombineCasts.cpp b/lib/Transforms/InstCombine/InstCombineCasts.cpp index ad934804c41..3cf8561a1d3 100644 --- a/lib/Transforms/InstCombine/InstCombineCasts.cpp +++ b/lib/Transforms/InstCombine/InstCombineCasts.cpp @@ -501,7 +501,7 @@ Instruction *InstCombiner::visitTrunc(TruncInst &CI) { // Transform trunc(lshr (sext A), Cst) to ashr A, Cst to eliminate type // conversion. // It works because bits coming from sign extension have the same value as - // sign bit of the original value; performing ashr instead of lshr + // the sign bit of the original value; performing ashr instead of lshr // generates bits of the same value as the sign bit. if (Src->hasOneUse() && match(Src, m_LShr(m_SExt(m_Value(A)), m_ConstantInt(Cst))) && @@ -509,7 +509,7 @@ Instruction *InstCombiner::visitTrunc(TruncInst &CI) { const unsigned ASize = A->getType()->getPrimitiveSizeInBits(); // This optimization can be only performed when zero bits generated by // the original lshr aren't pulled into the value after truncation, so we - // can only shift by values smaller then the size of destination type (in + // can only shift by values smaller than the size of destination type (in // bits). if (Cst->getValue().ult(ASize)) { Value *Shift = Builder->CreateAShr(A, Cst->getZExtValue()); -- 2.34.1