Skip to content
Snippets Groups Projects
Commit 8da48913 authored by Sven M. Hallberg's avatar Sven M. Hallberg
Browse files

don't extend table entries that are already unambiguous

parent 428636f3
No related branches found
No related tags found
No related merge requests found
...@@ -111,6 +111,12 @@ static void stringmap_merge(HHashSet *workset, HCFStringMap *dst, HCFStringMap * ...@@ -111,6 +111,12 @@ static void stringmap_merge(HHashSet *workset, HCFStringMap *dst, HCFStringMap *
combine_entries(workset, dst->epsilon_branch, src->epsilon_branch); combine_entries(workset, dst->epsilon_branch, src->epsilon_branch);
else else
dst->epsilon_branch = src->epsilon_branch; dst->epsilon_branch = src->epsilon_branch;
} else {
// if there is a non-conflicting value on the left (dst) side, it means
// that prediction is already unambiguous. we can drop the right (src)
// side we were going to extend with.
if(dst->epsilon_branch && dst->epsilon_branch != CONFLICT)
return;
} }
if(src->end_branch) { if(src->end_branch) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment