[SLP]Improve operands kind analaysis for constants.
authorAlexey Bataev <a.bataev@outlook.com>
Mon, 29 Aug 2022 20:08:47 +0000 (13:08 -0700)
committerAlexey Bataev <a.bataev@outlook.com>
Tue, 30 Aug 2022 13:35:39 +0000 (06:35 -0700)
commitafbf5466ba0e20ca575b3f6af9ab20251e5285b6
treeccc5b09b732245172aa82c6051b04412040104ce
parentb65d3eea662d364da9be3cb7c2b36dc3a853c108
[SLP]Improve operands kind analaysis for constants.

Removed EnableFP parameter in getOperandInfo function since it is not
needed, the operands kinds also controlled by the operation code, which
allows to remove extra check for the type of the operands. Also, added
analysis for uniform constant float values.

This change currently does not trigger any changes in the code since TTI
does not do analysis for constant floats, so it can be considered NFC.
Tested with llvm-test-suite + SPEC2017, no changes.

Differential Revision: https://reviews.llvm.org/D132886
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp