From dc9cbaf22e20fa0ed06d24a325ad83ff900cafcc Mon Sep 17 00:00:00 2001 From: Philip Reames Date: Thu, 10 Sep 2015 00:27:50 +0000 Subject: [PATCH] [RewriteStatepointsForGC] One last bit of naming [NFCI] git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247220 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/RewriteStatepointsForGC.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp b/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp index c79d0b1156a..22baeddc1a5 100644 --- a/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp +++ b/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp @@ -957,14 +957,14 @@ static Value *findBasePointer(Value *I, DefiningValueMapTy &cache) { // instructions. for (auto Pair : States) { Instruction *BDV = cast(Pair.first); - BDVState state = Pair.second; + BDVState State = Pair.second; assert(!isKnownBaseResult(BDV) && "why did it get added?"); - assert(!state.isUnknown() && "Optimistic algorithm didn't complete!"); - if (!state.isConflict()) + assert(!State.isUnknown() && "Optimistic algorithm didn't complete!"); + if (!State.isConflict()) continue; - if (PHINode *basephi = dyn_cast(state.getBase())) { + if (PHINode *basephi = dyn_cast(State.getBase())) { PHINode *phi = cast(BDV); unsigned NumPHIValues = phi->getNumIncomingValues(); for (unsigned i = 0; i < NumPHIValues; i++) { @@ -1007,7 +1007,7 @@ static Value *findBasePointer(Value *I, DefiningValueMapTy &cache) { basephi->addIncoming(Base, InBB); } assert(basephi->getNumIncomingValues() == NumPHIValues); - } else if (SelectInst *BaseSel = dyn_cast(state.getBase())) { + } else if (SelectInst *BaseSel = dyn_cast(State.getBase())) { SelectInst *Sel = cast(BDV); // Operand 1 & 2 are true, false path respectively. TODO: refactor to // something more safe and less hacky. @@ -1018,14 +1018,14 @@ static Value *findBasePointer(Value *I, DefiningValueMapTy &cache) { Value *Base = getBaseForInput(InVal, BaseSel); BaseSel->setOperand(i, Base); } - } else if (auto *BaseEE = dyn_cast(state.getBase())) { + } else if (auto *BaseEE = dyn_cast(State.getBase())) { Value *InVal = cast(BDV)->getVectorOperand(); // Find the instruction which produces the base for each input. We may // need to insert a bitcast. Value *Base = getBaseForInput(InVal, BaseEE); BaseEE->setOperand(0, Base); } else { - auto *BaseIE = cast(state.getBase()); + auto *BaseIE = cast(State.getBase()); auto *BdvIE = cast(BDV); auto UpdateOperand = [&](int OperandIdx) { Value *InVal = BdvIE->getOperand(OperandIdx); -- 2.34.1