[llvm-commits] [llvm] r160512 - /llvm/trunk/lib/Support/ConstantRange.cpp
Duncan Sands
baldrick at free.fr
Mon Jul 23 23:41:43 PDT 2012
Hi Nuno,
>>> reimplement truncate() to make it optimal.
>>> It is optimal at least up to 7 bits (I've tested all such cases)
>>> This change to truncate() allows a little simplification to the
>>> multiplication code,
>>> and it also makes multiplication optimal :)
>>
>> testcase?
>
> Well, it's complicated. It's impossible to write a test case to
> ensure that it is optimal. We could write, say, all cases for 3 bits,
> but even so, it's a lot of work.
you could try writing a little script that generates the unittest code for
you.
Ciao, Duncan.
More information about the llvm-commits
mailing list