some hoovering
authorDuraid Madina <duraid@octopus.com.au>
Thu, 26 Jan 2006 09:08:31 +0000 (09:08 +0000)
committerDuraid Madina <duraid@octopus.com.au>
Thu, 26 Jan 2006 09:08:31 +0000 (09:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25643 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/IA64/IA64Bundling.cpp
lib/Target/IA64/IA64InstrInfo.td
lib/Target/IA64/IA64RegisterInfo.cpp

index 0180ae23a452f4798ed6551730241405dc8d90a7..2f3d238f082d6d5c0f8b56d6f81f1e7567066f78 100644 (file)
@@ -2,8 +2,8 @@
 //
 //                     The LLVM Compiler Infrastructure
 //
-// This file was developed by the LLVM research group and is distributed under
-// the University of Illinois Open Source License. See LICENSE.TXT for details.
+// This file was developed by Duraid Madina and is distributed under the
+// University of Illinois Open Source License. See LICENSE.TXT for details.
 //
 //===----------------------------------------------------------------------===//
 //
@@ -56,7 +56,8 @@ namespace {
 
     std::set<unsigned> PendingRegWrites; // XXX: ugly global, but
                          // pending writes can cross basic blocks. Note that
-                         // taken branches end instruction groups.
+                         // taken branches end instruction groups. So we
+                        // only need to worry about 'fallthrough' code
   };
 } // end of anonymous namespace
 
index daf93f29fcc8b06b07c1750879b0c014e63c56f4..67d71e48db6711699fb26decac2b0ef0d5ef6425 100644 (file)
@@ -501,10 +501,13 @@ def SHRUI : AForm<0x03, 0x0b, (ops GR:$dst, GR:$src1, u6imm:$imm),
 def SHRSI : AForm<0x03, 0x0b, (ops GR:$dst, GR:$src1, u6imm:$imm),
   "shr $dst = $src1, $imm">;
 
-def EXTRU : AForm<0x03, 0x0b, (ops GR:$dst, GR:$src1, u6imm:$imm1, u6imm:$imm2),
+def EXTRU : AForm<0x03, 0x0b,
+  (ops GR:$dst, GR:$src1, u6imm:$imm1, u6imm:$imm2),
   "extr.u $dst = $src1, $imm1, $imm2">;
 
-def DEPZ : AForm<0x03, 0x0b, (ops GR:$dst, GR:$src1, u6imm:$imm1, u6imm:$imm2),          "dep.z $dst = $src1, $imm1, $imm2">;
+def DEPZ : AForm<0x03, 0x0b,
+  (ops GR:$dst, GR:$src1, u6imm:$imm1, u6imm:$imm2),
+  "dep.z $dst = $src1, $imm1, $imm2">;
 
 def PCMPEQOR : AForm<0x03, 0x0b, (ops PR:$dst, GR:$src1, GR:$src2, PR:$qp),
   "($qp) cmp.eq.or $dst, p0 = $src1, $src2">;
index cddface9d99d8a0f7ba1470aa48e2e5f92024771..d612efc29d2f9ff30496ffb424a6bc422c309764 100644 (file)
@@ -168,8 +168,8 @@ void IA64RegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator II) const
   if ( Offset <= 8191 && Offset >= -8192) { // smallish offset
     //fix up the old:
     MI.SetMachineOperandReg(i, IA64::r22);
-    MachineOperand &MO = MI.getOperand(i);
-    MO.setUse(); // mark r22 as being used (the bundler wants to know this)
+    MI.getOperand(i).setUse(); // mark r22 as being used
+                               // (the bundler wants to know this)
     //insert the new
     MachineInstr* nMI=BuildMI(IA64::ADDIMM22, 2, IA64::r22)
       .addReg(BaseRegister).addSImm(Offset);
@@ -177,8 +177,8 @@ void IA64RegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator II) const
   } else { // it's big
     //fix up the old:
     MI.SetMachineOperandReg(i, IA64::r22);
-    MachineOperand &MO = MI.getOperand(i);
-    MO.setUse(); // mark r22 as being used (the bundler wants to know this)
+    MI.getOperand(i).setUse(); // mark r22 as being used
+                               // (the bundler wants to know this)
     MachineInstr* nMI;
     nMI=BuildMI(IA64::MOVLIMM64, 1, IA64::r22).addSImm(Offset);
     MBB.insert(II, nMI);