]> granicus.if.org Git - llvm/commitdiff
Untabify.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 20 Jun 2016 00:37:41 +0000 (00:37 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 20 Jun 2016 00:37:41 +0000 (00:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273129 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
lib/Target/AArch64/Disassembler/AArch64ExternalSymbolizer.cpp
lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
lib/Target/AMDGPU/SIISelLowering.cpp
lib/Target/AMDGPU/SIInstrInfo.cpp
lib/Target/Mips/MipsHazardSchedule.cpp
lib/Target/PowerPC/PPCISelLowering.cpp
lib/Target/PowerPC/PPCQPXLoadSplat.cpp
lib/Target/SystemZ/SystemZShortenInst.cpp

index 37d20793183f2e07bab39a794c2cd2ee0f511208..2bd655d0aa206630dac0ab7479cd679b98f0c22b 100644 (file)
@@ -1682,7 +1682,7 @@ bool AArch64LoadStoreOpt::optimizeBlock(MachineBasicBlock &MBB,
   //        ldrh w2, [x0, #6]
   //        ; becomes
   //        str w1, [x0, #4]
-  //        lsr        w2, w1, #16
+  //        lsr w2, w1, #16
   for (MachineBasicBlock::iterator MBBI = MBB.begin(), E = MBB.end();
        MBBI != E;) {
     MachineInstr *MI = MBBI;
index c2ec90ffda6e317c860485f1992e0ea65ec83712..19d0ba2e1c41563c0593a3eca84dc8e5c45d9842 100644 (file)
@@ -136,7 +136,7 @@ bool AArch64ExternalSymbolizer::tryAddingSymbolicOperand(
       else if (ReferenceType ==
                LLVMDisassembler_ReferenceType_Out_LitPool_CstrAddr) {
         CommentStream << "literal pool for: \"";
-       CommentStream.write_escaped(ReferenceName);
+        CommentStream.write_escaped(ReferenceName);
         CommentStream << "\"";
       } else if (ReferenceType ==
                LLVMDisassembler_ReferenceType_Out_Objc_CFString_Ref)
index bba92c32195d6abb2f70459edab8020def91d554..3c5c188fdc13c0445fe3febd9ae78674e267080c 100644 (file)
@@ -47,8 +47,7 @@ static bool isCBranchSCC(const SDNode *N) {
   if (Cond.getOpcode() == ISD::CopyToReg)
     Cond = Cond.getOperand(2);
   return Cond.getOpcode() == ISD::SETCC &&
-         Cond.getOperand(0).getValueType() == MVT::i32 &&
-        Cond.hasOneUse();
+         Cond.getOperand(0).getValueType() == MVT::i32 && Cond.hasOneUse();
 }
 
 /// AMDGPU specific code to select AMDGPU machine instructions for
@@ -619,9 +618,8 @@ bool AMDGPUDAGToDAGISel::isGlobalLoad(const MemSDNode *N) const {
     return false;
   if (N->getAddressSpace() == AMDGPUAS::CONSTANT_ADDRESS) {
     if (Subtarget->getGeneration() < AMDGPUSubtarget::SOUTHERN_ISLANDS)
-      return !isa<GlobalValue>(
-        GetUnderlyingObject(N->getMemOperand()->getValue(),
-       CurDAG->getDataLayout()));
+      return !isa<GlobalValue>(GetUnderlyingObject(
+          N->getMemOperand()->getValue(), CurDAG->getDataLayout()));
 
     //TODO: Why do we need this?
     if (N->getMemoryVT().bitsLT(MVT::i32))
index 7bbbacdf5a7d3687d0745f9f4e4873256abb0a1d..7fc94911d13958731b36e241e3abd4ffd07037b4 100644 (file)
@@ -656,8 +656,7 @@ SDValue SITargetLowering::LowerFormalArguments(
   //   enabled too.
   if (CallConv == CallingConv::AMDGPU_PS &&
       ((Info->getPSInputAddr() & 0x7F) == 0 ||
-       ((Info->getPSInputAddr() & 0xF) == 0 &&
-       Info->isPSInputAllocated(11)))) {
+       ((Info->getPSInputAddr() & 0xF) == 0 && Info->isPSInputAllocated(11)))) {
     CCInfo.AllocateReg(AMDGPU::VGPR0);
     CCInfo.AllocateReg(AMDGPU::VGPR1);
     Info->markPSInputAllocated(0);
index 850826d74ccecac9e24579a97be9a203a2f67c59..7e64cbe11eea82316ddd5460bec50dfffd1d5494 100644 (file)
@@ -300,8 +300,8 @@ bool SIInstrInfo::getMemOpBaseRegImmOfs(MachineInstr *LdSt, unsigned &BaseReg,
 bool SIInstrInfo::shouldClusterMemOps(MachineInstr *FirstLdSt,
                                       MachineInstr *SecondLdSt,
                                       unsigned NumLoads) const {
-       const MachineOperand *FirstDst = nullptr;
-       const MachineOperand *SecondDst = nullptr;
+  const MachineOperand *FirstDst = nullptr;
+  const MachineOperand *SecondDst = nullptr;
 
   if (isDS(*FirstLdSt) && isDS(*SecondLdSt)) {
     FirstDst = getNamedOperand(*FirstLdSt, AMDGPU::OpName::vdst);
index edd176548c5a5428e23d69bff0a7faa0b7f314b6..c595c9b46ffcc3a2a916c0c6a177b524c7dfb74a 100644 (file)
@@ -23,8 +23,8 @@
 ///
 /// For example:
 ///
-/// 0x8004     bnec    a1,v0,<P+0x18>
-/// 0x8008     beqc    a1,a2,<P+0x54>
+/// 0x8004      bnec    a1,v0,<P+0x18>
+/// 0x8008      beqc    a1,a2,<P+0x54>
 ///
 /// In such cases, the processor is required to signal a Reserved Instruction
 /// exception.
index 22ae871dc6b9d995441d484a6224a9fd8443a9bd..b9e1a26862637903fbd3f8294958062fc540975d 100644 (file)
@@ -10588,8 +10588,8 @@ SDValue PPCTargetLowering::PerformDAGCombine(SDNode *N,
                     MinAlign(LD->getAlignment(), 4), LD->getAAInfo());
 
       if (LD->isIndexed()) {
-       // Note that DAGCombine should re-form any pre-increment load(s) from
-       // what is produced here if that makes sense.
+        // Note that DAGCombine should re-form any pre-increment load(s) from
+        // what is produced here if that makes sense.
         DAG.ReplaceAllUsesOfValueWith(SDValue(LD, 1), BasePtr);
       }
 
index 816f05f4bf6d25594d4cb6362a8bf74d14825f1a..d233cd28a50b3d73a764da244294f5d27ad55080 100644 (file)
@@ -130,12 +130,12 @@ bool PPCQPXLoadSplat::runOnMachineFunction(MachineFunction &MF) {
           }
         }
 
-       // If this instruction defines the splat register, then we cannot move
-       // the previous definition above it. If it reads from the splat
-       // register, then it must already be alive from some previous
-       // definition, and if the splat register is different from the source
-       // register, then this definition must not be the load for which we're
-       // searching.
+        // If this instruction defines the splat register, then we cannot move
+        // the previous definition above it. If it reads from the splat
+        // register, then it must already be alive from some previous
+        // definition, and if the splat register is different from the source
+        // register, then this definition must not be the load for which we're
+        // searching.
         if (MI->modifiesRegister(SplatReg, TRI) ||
             (SrcReg != SplatReg &&
              MI->readsRegister(SplatReg, TRI))) {
index 083718518f2e114ffea3d9416ed4f66dddb32af5..65bd3f0a214d2228da7c32ab9a719ceca603bf35 100644 (file)
@@ -78,12 +78,14 @@ bool SystemZShortenInst::shortenIIF(MachineInstr &MI,
   unsigned Reg = MI.getOperand(0).getReg();
   // The new opcode will clear the other half of the GR64 reg, so
   // cancel if that is live.
-  unsigned thisSubRegIdx = (SystemZ::GRH32BitRegClass.contains(Reg) ?
-                           SystemZ::subreg_h32 : SystemZ::subreg_l32);
-  unsigned otherSubRegIdx = (thisSubRegIdx == SystemZ::subreg_l32 ?
-                            SystemZ::subreg_h32 : SystemZ::subreg_l32);
-  unsigned GR64BitReg = TRI->getMatchingSuperReg(Reg, thisSubRegIdx,
-                                                &SystemZ::GR64BitRegClass);
+  unsigned thisSubRegIdx =
+      (SystemZ::GRH32BitRegClass.contains(Reg) ? SystemZ::subreg_h32
+                                               : SystemZ::subreg_l32);
+  unsigned otherSubRegIdx =
+      (thisSubRegIdx == SystemZ::subreg_l32 ? SystemZ::subreg_h32
+                                            : SystemZ::subreg_l32);
+  unsigned GR64BitReg =
+      TRI->getMatchingSuperReg(Reg, thisSubRegIdx, &SystemZ::GR64BitRegClass);
   unsigned OtherReg = TRI->getSubReg(GR64BitReg, otherSubRegIdx);
   if (LiveRegs.contains(OtherReg))
     return false;
@@ -139,8 +141,7 @@ bool SystemZShortenInst::shortenOn001(MachineInstr &MI, unsigned Opcode) {
 
 // Calls shortenOn001 if CCLive is false. CC def operand is added in
 // case of success.
-bool SystemZShortenInst::shortenOn001AddCC(MachineInstr &MI,
-                                          unsigned Opcode) {
+bool SystemZShortenInst::shortenOn001AddCC(MachineInstr &MI, unsigned Opcode) {
   if (!LiveRegs.contains(SystemZ::CC) && shortenOn001(MI, Opcode)) {
     MachineInstrBuilder(*MI.getParent()->getParent(), &MI)
       .addReg(SystemZ::CC, RegState::ImplicitDefine | RegState::Dead);