This is an archive of the discontinued LLVM Phabricator instance.

[SVE] Remove invalid usage of getNumElements in Instructions
ClosedPublic

Authored by ctetreau on Apr 30 2020, 2:58 PM.

Details

Summary

Remove invalid usage of VectorType::getNumElements in
ShuffleVectorInst::isValidOperands identified by test case
llvm::Analysis/ConstantFolding/vscale-shufflevector.ll. The tested
conditions hold for both fixed width and scalable vectors; use
getElementCount().

Diff Detail