HomePhabricator

[InstCombine] Add instcombine fold for extractelement + splat for scalable…

Authored by CarolineConcatto on May 11 2021, 7:22 AM.

Description

[InstCombine] Add instcombine fold for extractelement + splat for scalable vectors

This patch allows that scalable vector can also use the fold that already
exists for fixed vector, only when the lane index is lower than the minimum
number of elements of the vector.

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