This is an archive of the discontinued LLVM Phabricator instance.

[LegalizeTypes] Remove WidenVecRes_Shift and just use WidenVecRes_Binary
ClosedPublic

Authored by craig.topper on Aug 24 2020, 10:28 AM.

Details

Summary

This function seems to allow for the shift amount to have a different type than the result, but I don't think we do that anywhere else for vector shifts. We also don't have any support for legalizing the shift amount alone if the result is legal and the shift amount type isn't. The code coverage report here shows this code as uncovered http://lab.llvm.org:8080/coverage/coverage-reports/coverage/Users/buildslave/jenkins/workspace/coverage/llvm-project/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp.html

Diff Detail