mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
rose_build_groups: allow simple-exh lits to squash
This commit is contained in:
parent
1d9a5421ce
commit
a1bc69f3dd
@ -35,6 +35,7 @@
|
|||||||
|
|
||||||
#include "util/boundary_reports.h"
|
#include "util/boundary_reports.h"
|
||||||
#include "util/compile_context.h"
|
#include "util/compile_context.h"
|
||||||
|
#include "util/report_manager.h"
|
||||||
|
|
||||||
#include <queue>
|
#include <queue>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@ -597,8 +598,12 @@ bool isGroupSquasher(const RoseBuildImpl &build, const u32 id /* literal id */,
|
|||||||
|
|
||||||
/* Case 1 */
|
/* Case 1 */
|
||||||
|
|
||||||
// Can't squash cases with accepts
|
// Can't squash cases with accepts unless they are all
|
||||||
if (!g[v].reports.empty()) {
|
// simple-exhaustible.
|
||||||
|
if (any_of_in(g[v].reports, [&](ReportID report) {
|
||||||
|
return !isSimpleExhaustible(build.rm.getReport(report));
|
||||||
|
})) {
|
||||||
|
DEBUG_PRINTF("can't squash reporter\n");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user