[llvm-commits] [llvm] r77974 - /llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp

Sanjiv Gupta sanjiv.gupta at microchip.com
Mon Aug 3 19:16:45 PDT 2009


Bob Wilson wrote:
> This patch broke 3 of the ARM dejagnu tests.  I've reverted it for now.
>
>   
Fine.
Let me take a look at that and get back.
> On Aug 3, 2009, at 10:35 AM, Sanjiv Gupta wrote:
>
>   
>> Author: sgupta
>> Date: Mon Aug  3 12:35:21 2009
>> New Revision: 77974
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=77974&view=rev
>> Log:
>> Allow targets to custom handle softening of results or operands  
>> before trying the standard stuff.
>>
>> Modified:
>>    llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
>>
>> Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
>> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp?rev=77974&r1=77973&r2=77974&view=diff
>>
>> = 
>> = 
>> = 
>> = 
>> = 
>> = 
>> = 
>> = 
>> ======================================================================
>> --- llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp  
>> (original)
>> +++ llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp Mon  
>> Aug  3 12:35:21 2009
>> @@ -47,6 +47,10 @@
>>         errs() << "\n");
>>   SDValue R = SDValue();
>>
>> +  // See if the target wants to custom handle softening this result.
>> +  if (CustomLowerNode(N, N->getValueType(ResNo), true))
>> +        return;
>> +
>>   switch (N->getOpcode()) {
>>   default:
>> #ifndef NDEBUG
>> @@ -535,6 +539,10 @@
>>         errs() << "\n");
>>   SDValue Res = SDValue();
>>
>> +  // See if target wants to custom handle softening this operand.
>> +  if (CustomLowerNode(N, N->getOperand(OpNo).getValueType(), false))
>> +     return false;
>> +
>>   switch (N->getOpcode()) {
>>   default:
>> #ifndef NDEBUG
>>
>>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>>     
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>   




More information about the llvm-commits mailing list