diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-02-10 01:08:18 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-02-10 01:08:18 +0000 |
commit | de6083463d45c5f7f4e7669a59aa0524bf8f269a (patch) | |
tree | ff50d8597b2a77f59a97cbaa8707b24cf9e0194f /llvm/lib/CodeGen | |
parent | 540f5e0d416e987620210882ab90698c8d54ef7d (diff) | |
download | bcm5719-llvm-de6083463d45c5f7f4e7669a59aa0524bf8f269a.tar.gz bcm5719-llvm-de6083463d45c5f7f4e7669a59aa0524bf8f269a.zip |
Rename some variables to avoid confusion with SelectionDAGISel::BB.
llvm-svn: 34110
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index d5402499ed2..3b7fb6b58f6 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -3822,9 +3822,9 @@ bool SelectionDAGISel::runOnFunction(Function &Fn) { 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 @@ bool SelectionDAGISel::runOnFunction(Function &Fn) { } - 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 @@ bool SelectionDAGISel::runOnFunction(Function &Fn) { 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 @@ SDOperand SelectionDAGLowering::CopyValueToVirtualRegister(Value *V, } 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); |