Skip to content

Commit c0fc8f1

Browse files
committed
fix comment
1 parent 36ebca7 commit c0fc8f1

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

llvm/include/llvm/ADT/EquivalenceClasses.h

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)