This is an archive of the discontinued LLVM Phabricator instance.

[DAGCombiner] Remove reduceBuildVecConvertToConvertBuildVec and rely on the vectorizers instead (PR35732)
ClosedPublic

Authored by RKSimon on Oct 25 2018, 9:44 AM.

Details

Summary

reduceBuildVecConvertToConvertBuildVec vectorizes int2float in the DAGCombiner, which means that even if the LV/SLP has decided to keep scalar code using the cost models, this will override this.

While there are cases where vectorization is necessary in the DAG (mainly due to legalization artefacts), I don't think this is the case here. I think we should get rid of this and instead assume that the vectorizers know what they are doing.

Diff Detail

Repository
rL LLVM

Event Timeline

RKSimon created this revision.Oct 25 2018, 9:44 AM
This revision is now accepted and ready to land.Nov 1 2018, 10:24 AM
This revision was automatically updated to reflect the committed changes.