mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
violet: don't bother swapping holders if unable to trim graph
This commit is contained in:
parent
34ed4a6991
commit
72973ccb47
@ -1713,6 +1713,11 @@ void removeRedundantLiteralsFromInfix(const NGHolder &h, RoseInGraph &ig,
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!delay) {
|
||||||
|
/* unable to trim graph --> no point swapping to new holder */
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
assert(isCorrectlyTopped(*h_new));
|
assert(isCorrectlyTopped(*h_new));
|
||||||
graphs[right] = make_pair(h_new, delay);
|
graphs[right] = make_pair(h_new, delay);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user