[SandboxVec][SeedCollector] Reject non-simple memory ops for memory seeds (#116891)
commitc0ee8e22f4093ea1fda42cc037d50cb4619e1445
authorSterling-Augustine <56981066+Sterling-Augustine@users.noreply.github.com>
Wed, 20 Nov 2024 19:53:41 +0000 (20 11:53 -0800)
committerGitHub <noreply@github.com>
Wed, 20 Nov 2024 19:53:41 +0000 (20 11:53 -0800)
tree999534828c029b6ce57bdfe15ed3002be8b1257d
parent77ee94e78a52cf65e66c67804bf5b9bb5fe29b07
[SandboxVec][SeedCollector] Reject non-simple memory ops for memory seeds (#116891)

Load/Store isSimple is a necessary condition for VectorSeeds, but not
sufficient, so reverse the condition and return value, and continue the
check. Add relevant tests.
llvm/lib/Transforms/Vectorize/SandboxVectorizer/SeedCollector.cpp
llvm/unittests/Transforms/Vectorize/SandboxVectorizer/SeedCollectorTest.cpp