@@ -223,7 +223,7 @@ void BasicBlockCloner::sinkAddressProjections() {
223
223
//
224
224
// Return true on success, even if projections is empty.
225
225
bool SinkAddressProjections::analyzeAddressProjections (SILInstruction *inst) {
226
- projections .clear ();
226
+ oldProjections .clear ();
227
227
inBlockDefs.clear ();
228
228
229
229
SILBasicBlock *bb = inst->getParent ();
@@ -237,7 +237,7 @@ bool SinkAddressProjections::analyzeAddressProjections(SILInstruction *inst) {
237
237
}
238
238
if (auto *addressProj = dyn_cast<SingleValueInstruction>(def)) {
239
239
if (addressProj->isPure ()) {
240
- projections .push_back (addressProj);
240
+ oldProjections .push_back (addressProj);
241
241
return true ;
242
242
}
243
243
}
@@ -252,12 +252,12 @@ bool SinkAddressProjections::analyzeAddressProjections(SILInstruction *inst) {
252
252
return false ;
253
253
}
254
254
// Recurse upward through address projections.
255
- for (unsigned idx = 0 ; idx < projections .size (); ++idx) {
255
+ for (unsigned idx = 0 ; idx < oldProjections .size (); ++idx) {
256
256
// Only one address result/operand can be handled per instruction.
257
- if (projections .size () != idx + 1 )
257
+ if (oldProjections .size () != idx + 1 )
258
258
return false ;
259
259
260
- for (SILValue operandVal : projections [idx]->getOperandValues ())
260
+ for (SILValue operandVal : oldProjections [idx]->getOperandValues ())
261
261
if (!pushOperandVal (operandVal))
262
262
return false ;
263
263
}
@@ -267,13 +267,13 @@ bool SinkAddressProjections::analyzeAddressProjections(SILInstruction *inst) {
267
267
// Clone the projections gathered by 'analyzeAddressProjections' at
268
268
// their use site outside this block.
269
269
bool SinkAddressProjections::cloneProjections () {
270
- if (projections .empty ())
270
+ if (oldProjections .empty ())
271
271
return false ;
272
272
273
- SILBasicBlock *bb = projections .front ()->getParent ();
273
+ SILBasicBlock *bb = oldProjections .front ()->getParent ();
274
274
// Clone projections in last-to-first order.
275
- for (unsigned idx = 0 ; idx < projections .size (); ++idx) {
276
- auto *oldProj = projections [idx];
275
+ for (unsigned idx = 0 ; idx < oldProjections .size (); ++idx) {
276
+ auto *oldProj = oldProjections [idx];
277
277
assert (oldProj->getParent () == bb);
278
278
// Reset transient per-projection sets.
279
279
usesToReplace.clear ();
0 commit comments