[SLP][NFC]Do not try to revectorize instructions with constant operands, NFC.
authorAlexey Bataev <a.bataev@outlook.com>
Thu, 4 May 2023 20:32:35 +0000 (13:32 -0700)
committerAlexey Bataev <a.bataev@outlook.com>
Thu, 4 May 2023 20:52:42 +0000 (13:52 -0700)
commitd726f99d43a5bcbcdb63dbb3e2213733f3ca0259
tree11f81c2132edc4c60385ff2c46fa6f35f199b4a9
parented443d81d16768786b81534094ae64fa0afa5936
[SLP][NFC]Do not try to revectorize instructions with constant operands, NFC.

The pass should not try to revectorize instructions with constant
operands, which were not folded by the IRBuilder. It prevents the
non-terminating loop in the SLP vectorizer for non foldable constant
operations.
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp