[LLVMdev] Problems expanding fcmp to a libcall

Evan Cheng evan.cheng at apple.com
Mon Jul 7 00:18:12 PDT 2008


Patch committed. Thanks!

Evan

On Jul 4, 2008, at 2:16 AM, Richard Osborne wrote:

> Evan Cheng wrote:
>> On Jul 3, 2008, at 3:07 PM, Richard Osborne wrote:
>>
>>>> This seems to break the convention. It should be the responsibility
>>>> of  the caller to further legalize the results.
>>>>
>>>> Evan
>>>>
>>> That makes sense. In that case I believe
>>> SelectionDAGLegalize::LegalizeSetCCOperands
>>> should be legalizing the result. The description of this function
>>> says it tries to create a
>>> legal LHS and RHS but it this case it fails to return a legal LHS.
>>> The following patch allows me to
>>> compile my original file.
>>>
>>> --- LegalizeDAG.cpp~	2008-07-03 23:03:35.000000000 +0100
>>> +++ LegalizeDAG.cpp	2008-07-03 23:03:38.000000000 +0100
>>> @@ -4749,7 +4749,7 @@
>>>        Tmp1 = DAG.getNode(ISD::OR, Tmp1.getValueType(), Tmp1, Tmp2);
>>>        Tmp2 = SDOperand();
>>>      }
>>> -      LHS = Tmp1;
>>> +      LHS = LegalizeOp(Tmp1);
>>>      RHS = Tmp2;
>>>      return;
>>>    }
>>>
>>
>> Ok, I think this is the right patch. Do you have commit access?
>>
>> Thanks,
>>
>> Evan
>>
> I don't have any commit access. Would you be able to submit this for  
> me?
>
> Cheers,
>
> Richard
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list