Remove some dead code

This commit is contained in:
2024-10-10 13:21:13 -07:00
parent a1c61962a1
commit e213237698

View File

@@ -3302,14 +3302,10 @@ void begin(CheckJob *job, CheckContext *context) {
#endif #endif
if (job->begin.size() == 0) [[unlikely]] { if (job->begin.size() == 0) [[unlikely]] {
if (job->n->entryPresent) { // We don't erase the root
job->setResult(job->n->entry.pointVersion <= job->readVersion); assert(job->n->entryPresent);
MUSTTAIL return complete(job, context); job->setResult(job->n->entry.pointVersion <= job->readVersion);
} MUSTTAIL return complete(job, context);
job->n = getFirstChildExists(job->n);
job->continuation = down_left_spine;
__builtin_prefetch(job->n);
MUSTTAIL return keepGoing(job, context);
} }
auto taggedChild = getChild(job->n, job->begin[0]); auto taggedChild = getChild(job->n, job->begin[0]);
@@ -3322,14 +3318,9 @@ void begin(CheckJob *job, CheckContext *context) {
__builtin_prefetch(job->n); __builtin_prefetch(job->n);
MUSTTAIL return keepGoing(job, context); MUSTTAIL return keepGoing(job, context);
} else { } else {
job->n = nextSibling(job->n); // The root never has a next sibling
if (job->n == nullptr) { job->setResult(true);
job->setResult(true); MUSTTAIL return complete(job, context);
MUSTTAIL return complete(job, context);
}
job->continuation = down_left_spine;
__builtin_prefetch(job->n);
MUSTTAIL return keepGoing(job, context);
} }
} }
job->continuation = iterTable[taggedChild.getType()]; job->continuation = iterTable[taggedChild.getType()];