@@ -139,7 +139,7 @@ void SSAUpdaterBulk::RewriteAllUses(DominatorTree *DT,
139139 IDF.setLiveInBlocks (LiveInBlocks);
140140 IDF.calculate (IDFBlocks);
141141
142- // Important: reserve sufficient buckets to prevent map growth. [1]
142+ // Reserve sufficient buckets to prevent map growth. [1]
143143 BBInfos.init (LiveInBlocks.size () + DefBlocks.size ());
144144
145145 for (auto [BB, V] : R.Defines )
@@ -156,7 +156,7 @@ void SSAUpdaterBulk::RewriteAllUses(DominatorTree *DT,
156156
157157 // IsLiveOut indicates whether we are computing live-out values (true) or
158158 // live-in values (false).
159- std::function<Value *(BasicBlock *, bool )> computeValue =
159+ std::function<Value *(BasicBlock *, bool )> ComputeValue =
160160 [&](BasicBlock *BB, bool IsLiveOut) -> Value * {
161161 auto &BBInfo = BBInfos[BB];
162162
@@ -167,11 +167,11 @@ void SSAUpdaterBulk::RewriteAllUses(DominatorTree *DT,
167167 return BBInfo.LiveInValue ;
168168
169169 Value *V = DT->isReachableFromEntry (BB) && !PredCache.get (BB).empty ()
170- ? computeValue (DT->getNode (BB)->getIDom ()->getBlock (),
170+ ? ComputeValue (DT->getNode (BB)->getIDom ()->getBlock (),
171171 /* IsLiveOut=*/ true )
172172 : UndefValue::get (R.Ty );
173173
174- // The call to computeValue can insert new entries into the map:
174+ // The call to ComputeValue can insert new entries into the map:
175175 // assume BBInfos shouldn't grow due to [1] above and BBInfo reference is
176176 // valid.
177177 assert (&BBInfo == &BBInfos[BB] && " Map shouldn't grow!" );
@@ -183,7 +183,7 @@ void SSAUpdaterBulk::RewriteAllUses(DominatorTree *DT,
183183 for (auto *BB : IDFBlocks) {
184184 auto *PHI = cast<PHINode>(&BB->front ());
185185 for (BasicBlock *Pred : PredCache.get (BB))
186- PHI->addIncoming (computeValue (Pred, /* IsLiveOut=*/ true ), Pred);
186+ PHI->addIncoming (ComputeValue (Pred, /* IsLiveOut=*/ true ), Pred);
187187 }
188188
189189 // Rewrite actual uses with the inserted definitions.
@@ -194,7 +194,7 @@ void SSAUpdaterBulk::RewriteAllUses(DominatorTree *DT,
194194
195195 auto *User = cast<Instruction>(U->getUser ());
196196 BasicBlock *BB = getUserBB (U);
197- Value *V = computeValue (BB, /* IsLiveOut=*/ BB != User->getParent ());
197+ Value *V = ComputeValue (BB, /* IsLiveOut=*/ BB != User->getParent ());
198198 Value *OldVal = U->get ();
199199 assert (OldVal && " Invalid use!" );
200200 // Notify that users of the existing value that it is being replaced.
0 commit comments