Displaying 1 result from an estimated 1 matches for "forcevectorization".
2018 Jun 01
2
[VPlan] about vectorization factor selection
...collectUniformsAndScalars() and collectInstsToScalarize() don't look cheap, doing such check can speed up vectorization, in particular, for large MaxVFs.
Another minor thing is when force vectorization is enabled and MaxVF > 1, expected cost of VF=2 is computed twice at the moment.
bool ForceVectorization = Hints->getForce() == LoopVectorizeHints::FK_Enabled;
// Ignore scalar width, because the user explicitly wants vectorization.
if (ForceVectorization && MaxVF > 1) {
Width = 2;
Cost = expectedCost(Width).first / (float)Width;
}
for (unsigned i = 2; i <= MaxVF; i *...