summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-04-01 22:29:18 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-04-01 22:29:18 +0000
commit8b94c295c3dd8f19af44fe4cd4f78509e45fe03a (patch)
treedd9cd568a6e68ebcc57837c65447b94dfbeae244 /llvm/lib/Transforms
parent5cad45307e5dee8359dd10e53c19e2b2721a5630 (diff)
downloadbcm5719-llvm-8b94c295c3dd8f19af44fe4cd4f78509e45fe03a.tar.gz
bcm5719-llvm-8b94c295c3dd8f19af44fe4cd4f78509e45fe03a.zip
Fix comment.
llvm-svn: 128745
Diffstat (limited to 'llvm/lib/Transforms')
-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 5dd6fe5e278..32ab123f103 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
@@ -883,8 +883,8 @@ Instruction *InstCombiner::transformSExtICmp(ICmpInst *ICI, Instruction &CI) {
ICmpInst::Predicate Pred = ICI->getPredicate();
if (ConstantInt *Op1C = dyn_cast<ConstantInt>(Op1)) {
- // (x <s 0) ? -1 : 0 -> ashr x, 31 -> all ones if signed
- // (x >s -1) ? -1 : 0 -> ashr x, 31 -> all ones if not signed
+ // (x <s 0) ? -1 : 0 -> ashr x, 31 -> all ones if negative
+ // (x >s -1) ? -1 : 0 -> not (ashr x, 31) -> all ones if positive
if ((Pred == ICmpInst::ICMP_SLT && Op1C->isZero()) ||
(Pred == ICmpInst::ICMP_SGT && Op1C->isAllOnesValue())) {
OpenPOWER on IntegriCloud