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