diff options
Diffstat (limited to 'llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp b/llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp index ec5fc06d01fb..b34077154e84 100644 --- a/llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp +++ b/llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp @@ -891,9 +891,9 @@ public: DenseMap<BasicBlock *, unsigned int> BBToOrder; { // Init OrderToBB and BBToOrder. unsigned int RPONumber = 0; - for (auto RI = RPOT.begin(), RE = RPOT.end(); RI != RE; ++RI) { - OrderToBB[RPONumber] = *RI; - BBToOrder[*RI] = RPONumber; + for (BasicBlock *BB : RPOT) { + OrderToBB[RPONumber] = BB; + BBToOrder[BB] = RPONumber; Worklist.push(RPONumber); ++RPONumber; } @@ -2312,9 +2312,9 @@ bool AssignmentTrackingLowering::run(FunctionVarLocsBuilder *FnVarLocsBuilder) { DenseMap<BasicBlock *, unsigned int> BBToOrder; { // Init OrderToBB and BBToOrder. unsigned int RPONumber = 0; - for (auto RI = RPOT.begin(), RE = RPOT.end(); RI != RE; ++RI) { - OrderToBB[RPONumber] = *RI; - BBToOrder[*RI] = RPONumber; + for (BasicBlock *BB : RPOT) { + OrderToBB[RPONumber] = BB; + BBToOrder[BB] = RPONumber; Worklist.push(RPONumber); ++RPONumber; } @@ -2493,7 +2493,7 @@ removeRedundantDbgLocsUsingBackwardScan(const BasicBlock *BB, bool Changed = false; SmallDenseMap<DebugAggregate, BitVector> VariableDefinedBytes; // Scan over the entire block, not just over the instructions mapped by - // FnVarLocs, because wedges in FnVarLocs may only be seperated by debug + // FnVarLocs, because wedges in FnVarLocs may only be separated by debug // instructions. for (const Instruction &I : reverse(*BB)) { if (!isa<DbgVariableIntrinsic>(I)) { @@ -2593,7 +2593,7 @@ removeRedundantDbgLocsUsingForwardScan(const BasicBlock *BB, VariableMap; // Scan over the entire block, not just over the instructions mapped by - // FnVarLocs, because wedges in FnVarLocs may only be seperated by debug + // FnVarLocs, because wedges in FnVarLocs may only be separated by debug // instructions. for (const Instruction &I : *BB) { // Get the defs that come just before this instruction. @@ -2681,7 +2681,7 @@ removeUndefDbgLocsFromEntryBlock(const BasicBlock *BB, DenseMap<DebugVariable, std::pair<Value *, DIExpression *>> VariableMap; // Scan over the entire block, not just over the instructions mapped by - // FnVarLocs, because wedges in FnVarLocs may only be seperated by debug + // FnVarLocs, because wedges in FnVarLocs may only be separated by debug // instructions. for (const Instruction &I : *BB) { // Get the defs that come just before this instruction. |
