[llvm-commits] CVS: llvm/lib/Target/SparcV9/LiveVar/BBLiveVar.cpp
Jeff Cohen
jeffc at jolt-lang.org
Tue Jul 26 22:54:01 PDT 2005
Changes in directory llvm/lib/Target/SparcV9/LiveVar:
BBLiveVar.cpp updated: 1.49 -> 1.50
---
Log message:
Eliminate tabs and trailing spaces.
---
Diffs of the changes: (+15 -15)
BBLiveVar.cpp | 30 +++++++++++++++---------------
1 files changed, 15 insertions(+), 15 deletions(-)
Index: llvm/lib/Target/SparcV9/LiveVar/BBLiveVar.cpp
diff -u llvm/lib/Target/SparcV9/LiveVar/BBLiveVar.cpp:1.49 llvm/lib/Target/SparcV9/LiveVar/BBLiveVar.cpp:1.50
--- llvm/lib/Target/SparcV9/LiveVar/BBLiveVar.cpp:1.49 Thu Apr 21 18:27:35 2005
+++ llvm/lib/Target/SparcV9/LiveVar/BBLiveVar.cpp Wed Jul 27 00:53:43 2005
@@ -54,12 +54,12 @@
for (MachineInstr::const_val_op_iterator OpI = MI->begin(), OpE = MI->end();
OpI != OpE; ++OpI)
if (OpI.isDef()) // add to Defs if this operand is a def
- addDef(*OpI);
+ addDef(*OpI);
// do for implicit operands as well
for (unsigned i = 0; i < MI->getNumImplicitRefs(); ++i)
if (MI->getImplicitOp(i).isDef())
- addDef(MI->getImplicitRef(i));
+ addDef(MI->getImplicitRef(i));
// iterate over MI operands to find uses
for (MachineInstr::const_val_op_iterator OpI = MI->begin(), OpE = MI->end();
@@ -67,7 +67,7 @@
const Value *Op = *OpI;
if (isa<BasicBlock>(Op))
- continue; // don't process labels
+ continue; // don't process labels
if (OpI.isUse()) { // add to Uses only if this operand is a use
//
@@ -79,16 +79,16 @@
// Put Phi operands in UseSet for the incoming edge, not node.
// They must not "hide" later defs, and must be handled specially
// during set propagation over the CFG.
- if (MI->getOpcode() == V9::PHI) { // for a phi node
+ if (MI->getOpcode() == V9::PHI) { // for a phi node
const Value *ArgVal = Op;
- const BasicBlock *PredBB = cast<BasicBlock>(*++OpI); // next ptr is BB
-
- PredToEdgeInSetMap[PredBB].insert(ArgVal);
-
- if (DEBUG_LV >= LV_DEBUG_Verbose)
- std::cerr << " - phi operand " << RAV(ArgVal) << " came from BB "
+ const BasicBlock *PredBB = cast<BasicBlock>(*++OpI); // next ptr is BB
+
+ PredToEdgeInSetMap[PredBB].insert(ArgVal);
+
+ if (DEBUG_LV >= LV_DEBUG_Verbose)
+ std::cerr << " - phi operand " << RAV(ArgVal) << " came from BB "
<< RAV(PredBB) << "\n";
- } // if( IsPhi )
+ } // if( IsPhi )
else {
// It is not a Phi use: add to regular use set and remove later defs.
addUse(Op);
@@ -102,16 +102,16 @@
const Value *Op = MI->getImplicitRef(i);
if (Op->getType() == Type::LabelTy) // don't process labels
- continue;
+ continue;
if (MI->getImplicitOp(i).isUse())
- addUse(Op);
+ addUse(Op);
}
} // for all machine instructions
}
-
+
//-----------------------------------------------------------------------------
// To add an operand which is a def
//-----------------------------------------------------------------------------
@@ -208,7 +208,7 @@
// if the predec POID is lower than mine
if (PredLVBB->getPOId() <= POID)
- needAnotherIt = true;
+ needAnotherIt = true;
}
} // for
More information about the llvm-commits
mailing list