Reverse unnecessary changes made in r129606 and r129608. There is no change in functionality.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129612 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/Mips/MipsISelLowering.cpp b/lib/Target/Mips/MipsISelLowering.cpp
index fef720c..cde9fb3 100644
--- a/lib/Target/Mips/MipsISelLowering.cpp
+++ b/lib/Target/Mips/MipsISelLowering.cpp
@@ -1,16 +1,16 @@
-//===-- MipsISelLowering.cpp - Mips DAG Lowering Implementation ----------===//
+//===-- MipsISelLowering.cpp - Mips DAG Lowering Implementation -----------===//
 //
 //                     The LLVM Compiler Infrastructure
 //
 // This file is distributed under the University of Illinois Open Source
 // License. See LICENSE.TXT for details.
 //
-//===---------------------------------------------------------------------===//
+//===----------------------------------------------------------------------===//
 //
 // This file defines the interfaces that Mips uses to lower LLVM code into a
 // selection DAG.
 //
-//===---------------------------------------------------------------------===//
+//===----------------------------------------------------------------------===//
 
 #define DEBUG_TYPE "mips-lower"
 #include "MipsISelLowering.h"
@@ -221,8 +221,8 @@
   // Transform this to a MADD only if ADDENode and ADDCNode are the only users
   // of the values of MultNode, in which case MultNode will be removed in later
   // phases.
-  // If there exist users other than ADDENode or ADDCNode, this function
-  // returns here, which will result in MultNode being mapped to a single MULT
+  // If there exist users other than ADDENode or ADDCNode, this function returns
+  // here, which will result in MultNode being mapped to a single MULT
   // instruction node rather than a pair of MULT and MADD instructions being
   // produced.
   if (!MultHi.hasOneUse() || !MultLo.hasOneUse())
@@ -295,8 +295,8 @@
   // Transform this to a MSUB only if SUBENode and SUBCNode are the only users
   // of the values of MultNode, in which case MultNode will be removed in later
   // phases.
-  // If there exist users other than SUBENode or SUBCNode, this function
-  // returns here, which will result in MultNode being mapped to a single MULT
+  // If there exist users other than SUBENode or SUBCNode, this function returns
+  // here, which will result in MultNode being mapped to a single MULT
   // instruction node rather than a pair of MULT and MSUB instructions being
   // produced.
   if (!MultHi.hasOneUse() || !MultLo.hasOneUse())
@@ -520,9 +520,9 @@
   return SDValue();
 }
 
-//===---------------------------------------------------------------------===//
+//===----------------------------------------------------------------------===//
 //  Lower helper functions
-//===---------------------------------------------------------------------===//
+//===----------------------------------------------------------------------===//
 
 // AddLiveIn - This helper function adds the specified physical register to the
 // MachineFunction as a live in value.  It also creates a corresponding
@@ -653,9 +653,9 @@
   return BB;
 }
 
-//===---------------------------------------------------------------------===//
+//===----------------------------------------------------------------------===//
 //  Misc Lower Operation implementation
-//===---------------------------------------------------------------------===//
+//===----------------------------------------------------------------------===//
 
 SDValue MipsTargetLowering::
 LowerFP_TO_SINT(SDValue Op, SelectionDAG &DAG) const
@@ -880,11 +880,9 @@
 
   if (getTargetMachine().getRelocationModel() != Reloc::PIC_) {
     SDValue CPHi = DAG.getTargetConstantPool(C, MVT::i32, N->getAlignment(),
-                                             N->getOffset(),
-                                             MipsII::MO_ABS_HI);
+                                             N->getOffset(), MipsII::MO_ABS_HI);
     SDValue CPLo = DAG.getTargetConstantPool(C, MVT::i32, N->getAlignment(),
-                                             N->getOffset(),
-                                             MipsII::MO_ABS_LO);
+                                             N->getOffset(), MipsII::MO_ABS_LO);
     SDValue HiPart = DAG.getNode(MipsISD::Hi, dl, MVT::i32, CPHi);
     SDValue Lo = DAG.getNode(MipsISD::Lo, dl, MVT::i32, CPLo);
     ResNode = DAG.getNode(ISD::ADD, dl, MVT::i32, HiPart, Lo);
@@ -895,8 +893,7 @@
                                CP, MachinePointerInfo::getConstantPool(),
                                false, false, 0);
     SDValue CPLo = DAG.getTargetConstantPool(C, MVT::i32, N->getAlignment(),
-                                             N->getOffset(),
-                                             MipsII::MO_ABS_LO);
+                                             N->getOffset(), MipsII::MO_ABS_LO);
     SDValue Lo = DAG.getNode(MipsISD::Lo, dl, MVT::i32, CPLo);
     ResNode = DAG.getNode(ISD::ADD, dl, MVT::i32, Load, Lo);
   }
@@ -920,13 +917,13 @@
                       false, false, 0);
 }
 
-//===---------------------------------------------------------------------===//
+//===----------------------------------------------------------------------===//
 //                      Calling Convention Implementation
-//===---------------------------------------------------------------------===//
+//===----------------------------------------------------------------------===//
 
 #include "MipsGenCallingConv.inc"
 
-//===---------------------------------------------------------------------===//
+//===----------------------------------------------------------------------===//
 // TODO: Implement a generic logic using tblgen that can support this.
 // Mips O32 ABI rules:
 // ---
@@ -937,7 +934,7 @@
 //       yet to hold an argument. Otherwise, use A2, A3 and stack. If A1 is
 //       not used, it must be shadowed. If only A3 is avaiable, shadow it and
 //       go to stack.
-//===---------------------------------------------------------------------===//
+//===----------------------------------------------------------------------===//
 
 static bool CC_MipsO32(unsigned ValNo, MVT ValVT,
                        MVT LocVT, CCValAssign::LocInfo LocInfo,
@@ -961,8 +958,7 @@
   // This must be the first arg of the call if no regs have been allocated.
   // Initialize IntRegUsed in that case.
   if (IntRegs[State.getFirstUnallocated(IntRegs, IntRegsSize)] == Mips::A0 &&
-      F32Regs[State.getFirstUnallocated(F32Regs, FloatRegsSize)] == 
-      Mips::F12 &&
+      F32Regs[State.getFirstUnallocated(F32Regs, FloatRegsSize)] == Mips::F12 &&
       F64Regs[State.getFirstUnallocated(F64Regs, FloatRegsSize)] == Mips::D6)
     IntRegUsed = false;
 
@@ -1075,9 +1071,9 @@
   return false; // CC must always match
 }
 
-//===---------------------------------------------------------------------===//
+//===----------------------------------------------------------------------===//
 //                  Call Calling Convention Implementation
-//===---------------------------------------------------------------------===//
+//===----------------------------------------------------------------------===//
 
 /// LowerCall - functions arguments are copied from virtual regs to
 /// (physical regs)/(stack frame), CALLSEQ_START and CALLSEQ_END are emitted.
@@ -1139,9 +1135,8 @@
         if (VA.getValVT() == MVT::f32 && VA.getLocVT() == MVT::i32)
           Arg = DAG.getNode(ISD::BITCAST, dl, MVT::i32, Arg);
         if (VA.getValVT() == MVT::f64 && VA.getLocVT() == MVT::i32) {
-          SDValue Lo = DAG.getNode(MipsISD::ExtractElementF64, dl,
-                                   MVT::i32, Arg,
-                                   DAG.getConstant(0, MVT::i32));
+          SDValue Lo = DAG.getNode(MipsISD::ExtractElementF64, dl, MVT::i32,
+                                   Arg, DAG.getConstant(0, MVT::i32));
           SDValue Hi = DAG.getNode(MipsISD::ExtractElementF64, dl, MVT::i32,
                                    Arg, DAG.getConstant(1, MVT::i32));
           if (!Subtarget->isLittle())
@@ -1348,9 +1343,9 @@
   return Chain;
 }
 
-//===---------------------------------------------------------------------===//
+//===----------------------------------------------------------------------===//
 //             Formal Arguments Calling Convention Implementation
-//===---------------------------------------------------------------------===//
+//===----------------------------------------------------------------------===//
 
 /// LowerFormalArguments - transform physical registers into virtual registers
 /// and generate load operations for arguments places on the stack.
@@ -1362,7 +1357,7 @@
                                          &Ins,
                                          DebugLoc dl, SelectionDAG &DAG,
                                          SmallVectorImpl<SDValue> &InVals)
-  const {
+                                          const {
 
   MachineFunction &MF = DAG.getMachineFunction();
   MachineFrameInfo *MFI = MF.getFrameInfo();
@@ -1463,8 +1458,7 @@
       // be used on emitPrologue) to avoid mis-calc of the first stack
       // offset on PEI::calculateFrameObjectOffsets.
       unsigned ArgSize = VA.getValVT().getSizeInBits()/8;
-      LastStackArgEndOffset = FirstStackArgLoc + VA.getLocMemOffset() +
-                              ArgSize;
+      LastStackArgEndOffset = FirstStackArgLoc + VA.getLocMemOffset() + ArgSize;
       int FI = MFI->CreateFixedObject(ArgSize, 0, true);
       MipsFI->recordLoadArgsFI(FI, -(4 +
         (FirstStackArgLoc + VA.getLocMemOffset())));
@@ -1553,9 +1547,9 @@
   return Chain;
 }
 
-//===---------------------------------------------------------------------===//
+//===----------------------------------------------------------------------===//
 //               Return Value Calling Convention Implementation
-//===---------------------------------------------------------------------===//
+//===----------------------------------------------------------------------===//
 
 SDValue
 MipsTargetLowering::LowerReturn(SDValue Chain,
@@ -1580,8 +1574,7 @@
   if (DAG.getMachineFunction().getRegInfo().liveout_empty()) {
     for (unsigned i = 0; i != RVLocs.size(); ++i)
       if (RVLocs[i].isRegLoc())
-        DAG.getMachineFunction().getRegInfo()
-                                .addLiveOut(RVLocs[i].getLocReg());
+        DAG.getMachineFunction().getRegInfo().addLiveOut(RVLocs[i].getLocReg());
   }
 
   SDValue Flag;
@@ -1625,9 +1618,9 @@
                        Chain, DAG.getRegister(Mips::RA, MVT::i32));
 }
 
-//===---------------------------------------------------------------------===//
+//===----------------------------------------------------------------------===//
 //                           Mips Inline Assembly Support
-//===---------------------------------------------------------------------===//
+//===----------------------------------------------------------------------===//
 
 /// getConstraintType - Given a constraint letter, return the type of
 /// constraint it is for this target.