@@ -228,18 +228,16 @@ template <class ElemTy> class EquivalenceClasses {
228228 return false ;
229229 const ECValue *Cur = TheMapping[V];
230230 const ECValue *Next = Cur->getNext ();
231- if (Cur->isLeader ()) {
232- // If the current element is the leader and has a successor element,
233- // update the successor element's 'Leader' field to be the last element,
234- // set the successor element's stolen bit, and set the 'Leader' field of
235- // all other elements in same class to be the successor element.
236- if (Next) {
237- Next->Leader = Cur->Leader ;
238- Next->Next = (const ECValue *)((intptr_t )Next->Next | (intptr_t )1 );
239- const ECValue *newLeader = Next;
240- while ((Next = Next->getNext ())) {
241- Next->Leader = newLeader;
242- }
231+ // If the current element is the leader and has a successor element,
232+ // update the successor element's 'Leader' field to be the last element,
233+ // set the successor element's stolen bit, and set the 'Leader' field of
234+ // all other elements in same class to be the successor element.
235+ if (Cur->isLeader () && Next) {
236+ Next->Leader = Cur->Leader ;
237+ Next->Next = (const ECValue *)((intptr_t )Next->Next | (intptr_t )1 );
238+ const ECValue *newLeader = Next;
239+ while ((Next = Next->getNext ())) {
240+ Next->Leader = newLeader;
243241 }
244242 } else {
245243 const ECValue *Leader = findLeader (V).Node ;
0 commit comments