[llvm] r191421 - PPC: Do not introduce ISD nodes for fctid and fctiw

David Majnemer david.majnemer at gmail.com
Wed Sep 25 22:54:56 PDT 2013


On Wed, Sep 25, 2013 at 10:29 PM, Chandler Carruth <chandlerc at google.com>wrote:

> On Thu, Sep 26, 2013 at 12:22 AM, David Majnemer <david.majnemer at gmail.com
> > wrote:
>
>> Author: majnemer
>> Date: Thu Sep 26 00:22:11 2013
>> New Revision: 191421
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=191421&view=rev
>> Log:
>> PPC: Do not introduce ISD nodes for fctid and fctiw
>>
>
> Both a test case and an explanation for the commit log seem in order here.
>

While we talked about this on IRC, I felt that it would be good to close
the loop for those who weren't online.

r191419 added two ISD nodes that weren't being used. Hal Finkel ask for
them to be removed, which was done in r191421.  It was agreed that it
wasn't sensible to have a test for the change in r191421.


>
>> Modified:
>>     llvm/trunk/lib/Target/PowerPC/PPCISelLowering.h
>>     llvm/trunk/lib/Target/PowerPC/PPCInstr64Bit.td
>>     llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td
>>
>> Modified: llvm/trunk/lib/Target/PowerPC/PPCISelLowering.h
>> URL:
>> http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCISelLowering.h?rev=191421&r1=191420&r2=191421&view=diff
>>
>> ==============================================================================
>> --- llvm/trunk/lib/Target/PowerPC/PPCISelLowering.h (original)
>> +++ llvm/trunk/lib/Target/PowerPC/PPCISelLowering.h Thu Sep 26 00:22:11
>> 2013
>> @@ -42,10 +42,10 @@ namespace llvm {
>>        /// unsigned integers and single-precision outputs.
>>        FCFIDU, FCFIDS, FCFIDUS,
>>
>> -      /// FCTI[D,W]Z? - The FCTID, FCTIDZ, FCTIW and FCTIWZ instructions,
>> -      /// taking an f32 or f64 operand, producing an f64 value
>> containing the
>> -      /// integer representation of that FP value.
>> -      FCTID, FCTIDZ, FCTIW, FCTIWZ,
>> +      /// FCTI[D,W]Z - The FCTIDZ and FCTIWZ instructions, taking an f32
>> or f64
>> +      /// operand, producing an f64 value containing the integer
>> representation
>> +      /// of that FP value.
>> +      FCTIDZ, FCTIWZ,
>>
>>        /// Newer FCTI[D,W]UZ floating-point-to-integer conversion
>> instructions for
>>        /// unsigned integers.
>>
>> Modified: llvm/trunk/lib/Target/PowerPC/PPCInstr64Bit.td
>> URL:
>> http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCInstr64Bit.td?rev=191421&r1=191420&r2=191421&view=diff
>>
>> ==============================================================================
>> --- llvm/trunk/lib/Target/PowerPC/PPCInstr64Bit.td (original)
>> +++ llvm/trunk/lib/Target/PowerPC/PPCInstr64Bit.td Thu Sep 26 00:22:11
>> 2013
>> @@ -970,7 +970,7 @@ defm FCFID  : XForm_26r<63, 846, (outs f
>>                          [(set f64:$frD, (PPCfcfid f64:$frB))]>, isPPC64;
>>  defm FCTID  : XForm_26r<63, 814, (outs f8rc:$frD), (ins f8rc:$frB),
>>                          "fctid", "$frD, $frB", FPGeneral,
>> -                        [(set f64:$frD, (PPCfctid f64:$frB))]>, isPPC64;
>> +                        []>, isPPC64;
>>  defm FCTIDZ : XForm_26r<63, 815, (outs f8rc:$frD), (ins f8rc:$frB),
>>                          "fctidz", "$frD, $frB", FPGeneral,
>>                          [(set f64:$frD, (PPCfctidz f64:$frB))]>, isPPC64;
>>
>> Modified: llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td
>> URL:
>> http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td?rev=191421&r1=191420&r2=191421&view=diff
>>
>> ==============================================================================
>> --- llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td (original)
>> +++ llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td Thu Sep 26 00:22:11 2013
>> @@ -69,9 +69,7 @@ def PPCfcfid  : SDNode<"PPCISD::FCFID",
>>  def PPCfcfidu : SDNode<"PPCISD::FCFIDU",  SDTFPUnaryOp, []>;
>>  def PPCfcfids : SDNode<"PPCISD::FCFIDS",  SDTFPRoundOp, []>;
>>  def PPCfcfidus: SDNode<"PPCISD::FCFIDUS", SDTFPRoundOp, []>;
>> -def PPCfctid  : SDNode<"PPCISD::FCTID",  SDTFPUnaryOp, []>;
>>  def PPCfctidz : SDNode<"PPCISD::FCTIDZ", SDTFPUnaryOp, []>;
>> -def PPCfctiw  : SDNode<"PPCISD::FCTIW",  SDTFPUnaryOp, []>;
>>  def PPCfctiwz : SDNode<"PPCISD::FCTIWZ", SDTFPUnaryOp, []>;
>>  def PPCfctiduz: SDNode<"PPCISD::FCTIDUZ",SDTFPUnaryOp, []>;
>>  def PPCfctiwuz: SDNode<"PPCISD::FCTIWUZ",SDTFPUnaryOp, []>;
>> @@ -1696,7 +1694,7 @@ let Uses = [RM] in {
>>    let neverHasSideEffects = 1 in {
>>    defm FCTIW  : XForm_26r<63, 14, (outs f8rc:$frD), (ins f8rc:$frB),
>>                            "fctiw", "$frD, $frB", FPGeneral,
>> -                          [(set f64:$frD, (PPCfctiw f64:$frB))]>;
>> +                          []>;
>>    defm FCTIWZ : XForm_26r<63, 15, (outs f8rc:$frD), (ins f8rc:$frB),
>>                            "fctiwz", "$frD, $frB", FPGeneral,
>>                            [(set f64:$frD, (PPCfctiwz f64:$frB))]>;
>>
>>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130925/84a47f28/attachment.html>


More information about the llvm-commits mailing list