From: Benjamin Kramer Date: Fri, 1 Apr 2011 22:29:18 +0000 (+0000) Subject: Fix comment. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=406a6502377638f76fec46502248aeb65f419f08;p=oota-llvm.git Fix comment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128745 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/InstCombine/InstCombineCasts.cpp b/lib/Transforms/InstCombine/InstCombineCasts.cpp index 5dd6fe5e278..32ab123f103 100644 --- a/lib/Transforms/InstCombine/InstCombineCasts.cpp +++ b/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(Op1)) { - // (x ashr x, 31 -> all ones if signed - // (x >s -1) ? -1 : 0 -> ashr x, 31 -> all ones if not signed + // (x 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())) {