mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
DEDUPE instr: generate only when necessary
This commit is contained in:
parent
09bf568d95
commit
cd133f77ee
@ -3084,7 +3084,11 @@ void makeReport(RoseBuildImpl &build, const ReportID id, const bool has_som,
|
|||||||
switch (report.type) {
|
switch (report.type) {
|
||||||
case EXTERNAL_CALLBACK:
|
case EXTERNAL_CALLBACK:
|
||||||
if (!has_som) {
|
if (!has_som) {
|
||||||
|
// Dedupe is only necessary if this report has a dkey, or if there
|
||||||
|
// are SOM reports to catch up.
|
||||||
|
if (build.rm.getDkey(report) != ~0U || build.hasSom) {
|
||||||
makeDedupe(id, report_block);
|
makeDedupe(id, report_block);
|
||||||
|
}
|
||||||
if (report.ekey == INVALID_EKEY) {
|
if (report.ekey == INVALID_EKEY) {
|
||||||
report_block.emplace_back(ROSE_INSTR_REPORT);
|
report_block.emplace_back(ROSE_INSTR_REPORT);
|
||||||
report_block.back().u.report.report = id;
|
report_block.back().u.report.report = id;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user