[llvm] r212164 - InstCombine: Don't turn -(x/INT_MIN) -> x/INT_MIN

Sean Silva chisophugis at gmail.com
Wed Jul 2 09:40:37 PDT 2014


On Wed, Jul 2, 2014 at 10:39 AM, Sean Silva <chisophugis at gmail.com> wrote:

>
>
>
> On Wed, Jul 2, 2014 at 1:07 AM, Chandler Carruth <chandlerc at google.com>
> wrote:
>
>>
>> On Tue, Jul 1, 2014 at 11:54 PM, David Majnemer <david.majnemer at gmail.com
>> > wrote:
>>
>>> cmpl $-2147483648, %edi
>>>
>>
>> There has to be a less crazy way to test for -1... encoding this massive
>> immediate makes me sad.
>>
>
> Sign-extended imm8 should only take 1 byte.
>

Derp. Nvm. INT_MIN == 0x800...


> -- Sean Silva
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140702/37136210/attachment.html>


More information about the llvm-commits mailing list