3
main.cpp
3
main.cpp
@@ -115,6 +115,7 @@ usage(int ret) {
|
||||
printf(" [-O0/-O1]\t\t\t\tSet optimization level (-O1 is default)\n");
|
||||
printf(" [--opt=<option>]\t\t\tSet optimization option\n");
|
||||
printf(" disable-assertions\t\tRemove assertion statements from final code.\n");
|
||||
printf(" disable-fma\t\t\tDisable 'fused multiply-add' instructions (on targets that support them)\n");
|
||||
printf(" disable-loop-unroll\t\tDisable loop unrolling.\n");
|
||||
printf(" fast-masked-vload\t\tFaster masked vector loads on SSE (may go past end of array)\n");
|
||||
printf(" fast-math\t\t\tPerform non-IEEE-compliant optimizations of numeric expressions\n");
|
||||
@@ -333,6 +334,8 @@ int main(int Argc, char *Argv[]) {
|
||||
g->opt.disableAsserts = true;
|
||||
else if (!strcmp(opt, "disable-loop-unroll"))
|
||||
g->opt.unrollLoops = false;
|
||||
else if (!strcmp(opt, "disable-fma"))
|
||||
g->opt.disableFMA = true;
|
||||
|
||||
// These are only used for performance tests of specific
|
||||
// optimizations
|
||||
|
||||
Reference in New Issue
Block a user