[llvm-commits] [llvm] r51863 - in /llvm/trunk: include/llvm/Analysis/ValueTracking.h lib/Analysis/ValueTracking.cpp lib/Transforms/Scalar/InstructionCombining.cpp

Chris Lattner clattner at apple.com
Mon Jun 2 11:39:28 PDT 2008


On Jun 2, 2008, at 10:47 AM, Dan Gohman wrote:

>
> On Jun 1, 2008, at 6:18 PM, Chris Lattner wrote:
>
>> Author: lattner
>> Date: Sun Jun  1 20:18:21 2008
>> New Revision: 51863
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=51863&view=rev
>> Log:
>> move ComputeMaskedBits, MaskedValueIsZero, and ComputeNumSignBits
>> out of instcombine into a new file in libanalysis.  This also teaches
>> ComputeNumSignBits about the number of sign bits in a constantint.
>
> Hi Chris,
>
> ComputeNumSignBits has fallback code that uses ComputeMaskedBits
> to compute a result for any node that it doesn't have special
> logic for. That logic should have handled ConstantInt; was it
> failing to do so?

Very subtle, I missed that.  Thanks, I added a comment and removed the  
code.

-Chris



More information about the llvm-commits mailing list