Skip to content

Commit 272b56e

Browse files
committed
Improve faustbench-llvm by checking '-ct 0' option.
1 parent 389b447 commit 272b56e

File tree

1 file changed

+23
-6
lines changed

1 file changed

+23
-6
lines changed

architecture/faust/dsp/dsp-optimizer.h

+23-6
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ class dsp_optimizer_real {
224224
t1.push_back("-vs");
225225
t1.push_back(std::to_string(size));
226226
fVecOptionsTable.push_back(t1);
227-
}
228-
*/
227+
}
228+
*/
229229
}
230230

231231
void printItem(const std::vector <std::string>& item)
@@ -422,14 +422,23 @@ class dsp_optimizer_real {
422422
best_res = best_vec;
423423
}
424424

425+
// Current best
426+
TOptionTable options_table;
427+
{
428+
TOption best = std::get<3>(best_res);
429+
options_table.push_back(best);
430+
}
431+
425432
if (std::get<3>(best_res)[0] == "-vec") {
426-
if (fTrace) fprintf(stdout, "Check with -g or -dfs\n");
427-
// Current best
428-
TOptionTable options_table;
433+
if (fTrace) fprintf(stdout, "Check with -ct 0\n");
434+
// Add -ct 0
429435
{
430436
TOption best = std::get<3>(best_res);
437+
best.push_back("-ct");
438+
best.push_back("0");
431439
options_table.push_back(best);
432440
}
441+
if (fTrace) fprintf(stdout, "Check with -g or -dfs\n");
433442
// Add -g
434443
{
435444
TOption best = std::get<3>(best_res);
@@ -451,7 +460,15 @@ class dsp_optimizer_real {
451460
}
452461
return findOptimizedParametersAux(options_table);
453462
} else {
454-
return best_res;
463+
if (fTrace) fprintf(stdout, "Check with -ct 0\n");
464+
// Add -ct 0
465+
{
466+
TOption best = std::get<3>(best_res);
467+
best.push_back("-ct");
468+
best.push_back("0");
469+
options_table.push_back(best);
470+
}
471+
return findOptimizedParametersAux(options_table);
455472
}
456473
}
457474

0 commit comments

Comments
 (0)