HomePhabricator

[DAGCombiner][SVE] Fix invalid use of getVectorNumElements() in visitSRA.

Authored by huihuiz on Feb 5 2021, 9:54 AM.

Description

[DAGCombiner][SVE] Fix invalid use of getVectorNumElements() in visitSRA.

Make sure scalable property is preserved by using getVectorElementCount().

Reviewed By: paulwalker-arm

Differential Revision: https://reviews.llvm.org/D95967