[llvm-commits] [llvm] r125393 - in /llvm/trunk: lib/VMCore/ConstantFold.cpp test/Transforms/InstCombine/bitcast-vec-uniform.ll test/Transforms/InstCombine/fold-vector-select.ll
Nick Lewycky
nicholas at mxc.ca
Sun Feb 13 14:05:50 PST 2011
Duncan Sands wrote:
> Hi Nadav,
>
>> Thank you for catching this.
>>
>> The patch below fixes the problem. If it looks good to you I will commit it.
>
> why not teach getAllOnesValue to handle floating point types instead?
Further, it seems that if we're going to have Constant::getAllOnesValue
then we should also have Constant->isAllOnesValue().
Nick
More information about the llvm-commits
mailing list