Skip to content

Commit 768216c

Browse files
committed
[pseudo] Handle no-reductions-available on the fastpath. NFC
This is a ~2% speedup.
1 parent 3b6edef commit 768216c

File tree

1 file changed

+1
-1
lines changed
  • clang-tools-extra/pseudo/lib

1 file changed

+1
-1
lines changed

clang-tools-extra/pseudo/lib/GLR.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ class GLRReduce {
380380
RID = A.getReduceRule();
381381
}
382382
if (!RID.hasValue())
383-
return false;
383+
return true; // no reductions available, but we've processed the head!
384384
const auto &Rule = Params.G.lookupRule(*RID);
385385
const GSS::Node *Base = Head;
386386
TempSequence.resize_for_overwrite(Rule.Size);

0 commit comments

Comments
 (0)