[llvm-commits] [llvm] r42822 - in /llvm/trunk: include/llvm/CodeGen/SelectionDAG.h lib/CodeGen/SelectionDAG/LegalizeDAG.cpp lib/CodeGen/SelectionDAG/SelectionDAG.cpp lib/Target/PowerPC/PPCISelLowering.cpp lib/Target/PowerPC/PPCISelLowering.h lib/Target/PowerPC/PPCInstrFormats.td lib/Target/PowerPC/PPCInstrInfo.td

Dale Johannesen dalej at apple.com
Wed Oct 10 11:14:01 PDT 2007


On Oct 10, 2007, at 12:19 AM, Evan Cheng wrote:

>
> On Oct 9, 2007, at 6:01 PM, Dale Johannesen wrote:
>
>>
>> ===================================================================== 
>> =
>> ========
>> --- llvm/trunk/include/llvm/CodeGen/SelectionDAG.h (original)
>> +++ llvm/trunk/include/llvm/CodeGen/SelectionDAG.h Tue Oct  9
>> 20:01:31 2007
>> @@ -403,6 +403,8 @@
>>    SDNode *getTargetNode(unsigned Opcode, MVT::ValueType VT,
>>                          const SDOperand *Ops, unsigned NumOps);
>>    SDNode *getTargetNode(unsigned Opcode, MVT::ValueType VT1,
>> +                        MVT::ValueType VT2);
>> +  SDNode *getTargetNode(unsigned Opcode, MVT::ValueType VT1,
>>                          MVT::ValueType VT2, SDOperand Op1);
>
> This seems unnecessary. You can use this variant:
>    SDNode *getTargetNode(unsigned Opcode, MVT::ValueType VT1,
>                          MVT::ValueType VT2,
>                          const SDOperand *Ops, unsigned NumOps);

It's not me using it, it's tablegen.  I could change that as you  
suggest but
this seems simpler.  No good reason not to support it, is there?

> Ewww. :-) It just occurred to me you might want to implement this lot
> with the usesCustomDAGSchedInserter = 1 hack. It allows you to expand
> a pseudo PPC FP_ROUND_INREG node into multiple MI's at the end of
> scheduling. It's also a hack but might be a little bit cleaner than
> this. Sorry it didn't come to me when we were talking about this. :-(

Yes, that would be cleaner.   I'll push the rewrite on my stack, but  
I want
to make progress in functionality.





More information about the llvm-commits mailing list