This is an archive of the discontinued LLVM Phabricator instance.

[SLP]Introduce isUndefVector function to check for undef vectors.
ClosedPublic

Authored by ABataev on Dec 1 2021, 6:26 AM.

Details

Summary

Undefined vector might be not only the UndefValue, but also it can be
a constant vector with undef ot poison elements, need to check for this
kind of undef too.

Diff Detail

Event Timeline

ABataev created this revision.Dec 1 2021, 6:26 AM
ABataev requested review of this revision.Dec 1 2021, 6:26 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 1 2021, 6:26 AM
RKSimon accepted this revision.Dec 1 2021, 6:53 AM

LGTM with one minor

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
293

remove the isa<> - the dyn_cast below handles it

This revision is now accepted and ready to land.Dec 1 2021, 6:53 AM
ABataev marked an inline comment as done.Dec 1 2021, 7:31 AM
ABataev added inline comments.
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
293

Will do, thanks!

This revision was landed with ongoing or failed builds.Dec 1 2021, 7:47 AM
This revision was automatically updated to reflect the committed changes.
ABataev marked an inline comment as done.