diff options
Diffstat (limited to 'llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp b/llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp index ec5fc06d01fb..535be6cab139 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; } @@ -2192,7 +2192,7 @@ static AssignmentTrackingLowering::OverlapMap buildOverlapMapAndRecordDeclares( // Skip this assignment if the affected bits are outside of the // variable fragment. if (!at::calculateFragmentIntersect( - I.getModule()->getDataLayout(), Info->Base, + I.getDataLayout(), Info->Base, Info->OffsetInBits, Info->SizeInBits, Assign, FragInfo) || (FragInfo && FragInfo->SizeInBits == 0)) return; @@ -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. |
