Is there a way to enable and disable the vectorization cost model (preferably through the command line) for the C compiler? (As of now, the community version is 19.10.)
This is useful since it allows us to evaluate a compiler’s cost model by seeing how often a program executes faster when the cost model is disabled. For this we need to compile the program both with the cost model enabled and disabled.
I found a similar thread here (https://www.pgroup.com/userforum/viewtopic.php?f=4&t=4492&p=17579&hilit=cost+model), but it seems like I need to insert some code to “disable” the cost model. This means I would need two versions of the code, rather than having one version and different compiler options.