[LLVMdev] Missed optimization opportunity in 3-way integer comparison case

Yuri yuri at rawbw.com
Thu May 15 10:54:47 PDT 2014


I created this bug report so that this issue won't get lost: 
http://llvm.org/bugs/show_bug.cgi?id=19758

Yuri


On 05/14/2014 00:37, Yuri wrote:
> Yes, my original example had an unsigned comparison, and clang 
> produces to 'cmp' instructions only in unsigned case. However, in both 
> signed and unsigned cases it is possible to compare with only one 
> 'cmp' instruction.
>
> Here is the procedure that does such comparison with one 'cmp' in the 
> case of unsigned arguments: 




More information about the llvm-dev mailing list