This is an archive of the discontinued LLVM Phabricator instance.

[SLP]Delay vectorization of postponable values for instructions with no users.
ClosedPublic

Authored by ABataev on Aug 16 2022, 6:46 AM.

Details

Summary

SLP vectorizer tries to find the reductions starting the operands of the
instructions with no-users/void returns/etc. But such operands can be
postponable instructions, like Cmp, InsertElement or InsertValue. Such
operands still must be postponed, vectorizer should not try to vectorize
them immediately.

Diff Detail