[llvm-bugs] [Bug 32524] x86: inefficient code for x == 0 || x == 1

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Apr 11 08:30:10 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=32524

Hans Wennborg <hans at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #9 from Hans Wennborg <hans at chromium.org> ---
(In reply to Sanjay Patel from comment #8)
> After:
> https://reviews.llvm.org/rL299851
> ...we have:
> 
> __Z1fi:
> 0000000000000000	cmpl	$0x2, %edi
> 0000000000000003	setb	%al
> 0000000000000006	retq
> __Z1hi:
> 0000000000000007	incl	%edi
> 0000000000000009	cmpl	$0x2, %edi
> 000000000000000c	setb	%al
> 000000000000000f	retq
> 
> So 7 bytes and 9 bytes.
> 
> Hans, do you prefer to leave this bug open to track the -Os problem or open
> a new bug? We can still see the bug using an IR test case, but it should not
> repro from C source now. I suspect it is the same or related to bug 27202.

Sorry for the slow reply.

Maybe just a comment on 27202 will suffice.

I'll close this one.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170411/7e80402c/attachment-0001.html>


More information about the llvm-bugs mailing list