summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2015-11-17 18:46:56 +0000
committerSanjay Patel <spatel@rotateright.com>2015-11-17 18:46:56 +0000
commit1de794aa3a7c3a2b415827e6336b036ca25c8e89 (patch)
tree6eed720c495182102c0e09492d4d35be1e628c10 /llvm/lib/Transforms/InstCombine
parent1acf955a6ac8cfccf43001ca30604ce34329f05f (diff)
downloadbcm5719-llvm-1de794aa3a7c3a2b415827e6336b036ca25c8e89.tar.gz
bcm5719-llvm-1de794aa3a7c3a2b415827e6336b036ca25c8e89.zip
fix typos; NFC
llvm-svn: 253359
Diffstat (limited to 'llvm/lib/Transforms/InstCombine')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
index ad934804c41..3cf8561a1d3 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
+++ b/llvm/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());
OpenPOWER on IntegriCloud