[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
Duncan Sands
baldrick at free.fr
Thu Feb 17 01:52:32 PST 2011
Hi Frits,
>> You can get the bitwidth using Ty->getPrimitiveSizeInBits(). Thus you only
>> have to worry about setting the IEEE flag right. So the switch etc can be
>> turned into something like this:
>> APFloat FL = APFloat::getAllOnesValue(Ty->getPrimitiveSizeInBits(),
>> Ty->isPPC_FP128Ty());
>
> I think you meant '!Ty->isPPC_FP128Ty()' there. Nadav's patch got this
> wrong too.
yup.
Ciao, Duncan.
More information about the llvm-commits
mailing list