[llvm-commits] [llvm] r68576 - in /llvm/trunk: include/llvm/Target/ lib/CodeGen/ lib/CodeGen/SelectionDAG/ lib/Target/X86/ test/CodeGen/X86/

Sanjiv.Gupta at microchip.com Sanjiv.Gupta at microchip.com
Fri Apr 10 09:20:43 PDT 2009


>>> +  assert(Op.getNode()->getNumValues() == 1 &&
>>> +         "ShrinkDemandedOp only supports nodes with one result!");
>>> +
>> This assert breaks via visitADD, when the ADD operation also  
>> produces a
>> carry, so Op.getNode()->getNumValues() is 2 there.

>ADD always has one result. ADDC and UADDO are used to represent an add
>with a carry result.

>Dan

Thanks Dan,
This helped us figure out a mistake where we were lowering an ADD to ADDC in PIC16 port.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090410/ab3b5af9/attachment.html>


More information about the llvm-commits mailing list