Commit a8be7896 authored by Steffen Michels's avatar Steffen Michels
Browse files

add flag for turning on/off generic fusion

parent b2dfdd46
Pipeline #49135 passed with stage
in 20 seconds
......@@ -2051,6 +2051,8 @@ static int compile_project_node (P_NODE project_node)
*arg++="-pg";
if ((clean_options & FUSION_MASK)!=0)
*arg++="-fusion";
if ((clean_options & GENERIC_FUSION_MASK)!=0)
*arg++="-generic_fusion";
if (dynamics)
*arg++="-dynamics";
......@@ -4062,6 +4064,9 @@ static void argument_error (void)
printf (" -fusion -nfusion\n");
printf (" Enable/disable optimizing by fusion transformation\n");
printf (" (default: -nfusion)\n");
printf (" -genfusion -ngenfusion\n");
printf (" Enable/disable optimizing by generic fusion transformation\n");
printf (" (default: -ngenfusion)\n");
printf (" -pt -npt Enable/disable the generation of code for time profiling\n");
printf (" (default: -npt)\n");
printf (" -pg -npg Enable/disable the generation of code for callgraph profiling\n");
......@@ -4594,6 +4599,10 @@ int main (int argc,char **argv)
option_on (FUSION_MASK);
} else if (!strcmp (s,"nfusion")){
option_off (FUSION_MASK);
} else if (!strcmp (s,"genfusion")){
option_on (GENERIC_FUSION_MASK);
} else if (!strcmp (s,"ngenfusion")){
option_off (GENERIC_FUSION_MASK);
} else if (!strcmp (s,"dynamics")){
dynamics=1;
} else if (!strcmp (s,"clc")){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment