[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

Evan Cheng evan.cheng at apple.com
Fri Feb 9 17:08:34 PST 2007



Changes in directory llvm/lib/CodeGen/SelectionDAG:

SelectionDAGISel.cpp updated: 1.357 -> 1.358
---
Log message:

Rename some variables to avoid confusion with SelectionDAGISel::BB.

---
Diffs of the changes:  (+6 -6)

 SelectionDAGISel.cpp |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)


Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.357 llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.358
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.357	Sat Feb  3 19:35:11 2007
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp	Fri Feb  9 19:08:18 2007
@@ -3822,9 +3822,9 @@
   bool MadeChange = true;
   while (MadeChange) {
     MadeChange = false;
-  for (Function::iterator BB = Fn.begin(), E = Fn.end(); BB != E; ++BB) {
+  for (Function::iterator FNI = Fn.begin(), E = Fn.end(); FNI != E; ++FNI) {
     // Split all critical edges where the dest block has a PHI.
-    TerminatorInst *BBTI = BB->getTerminator();
+    TerminatorInst *BBTI = FNI->getTerminator();
     if (BBTI->getNumSuccessors() > 1) {
       for (unsigned i = 0, e = BBTI->getNumSuccessors(); i != e; ++i)
         if (isa<PHINode>(BBTI->getSuccessor(i)->begin()) &&
@@ -3833,7 +3833,7 @@
     }
     
     
-    for (BasicBlock::iterator BBI = BB->begin(), E = BB->end(); BBI != E; ) {
+    for (BasicBlock::iterator BBI = FNI->begin(), E = FNI->end(); BBI != E; ) {
       Instruction *I = BBI++;
       
       if (CallInst *CI = dyn_cast<CallInst>(I)) {
@@ -3843,7 +3843,7 @@
           if (const TargetAsmInfo *TAI = 
                 TLI.getTargetMachine().getTargetAsmInfo()) {
             if (TAI->ExpandInlineAsm(CI))
-              BBI = BB->begin();
+              BBI = FNI->begin();
           }
       } else if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(I)) {
         MadeChange |= OptimizeGEPExpression(GEPI, TLI.getTargetData());
@@ -3975,10 +3975,10 @@
 }
 
 void SelectionDAGISel::
-LowerArguments(BasicBlock *BB, SelectionDAGLowering &SDL,
+LowerArguments(BasicBlock *LLVMBB, SelectionDAGLowering &SDL,
                std::vector<SDOperand> &UnorderedChains) {
   // If this is the entry block, emit arguments.
-  Function &F = *BB->getParent();
+  Function &F = *LLVMBB->getParent();
   FunctionLoweringInfo &FuncInfo = SDL.FuncInfo;
   SDOperand OldRoot = SDL.DAG.getRoot();
   std::vector<SDOperand> Args = TLI.LowerArguments(F, SDL.DAG);






More information about the llvm-commits mailing list