[llvm-commits] [llvm] r89639 - in /llvm/trunk: lib/Transforms/Scalar/InstructionCombining.cpp test/Transforms/InstCombine/compare-signs.ll

Duncan Sands baldrick at free.fr
Mon Nov 23 00:33:15 PST 2009


>>> + if (KnownZeroLHS.countLeadingOnes() == BitWidth-1 &&
>>> + KnownZeroRHS.countLeadingOnes() == BitWidth-1) {
>>
>> == -> >= :)
> 
> Nope, look again!
> 
> +        APInt TypeMask(APInt::getHighBitsSet(BitWidth, BitWidth-1));
> 
> Thus, it will never return a knownzero with all bits set. :)

Ha ha, you got me there!

Ciao,

Duncan.



More information about the llvm-commits mailing list