Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SLP] Avoid repeated visitation in getVectorElementSize(); NFC
We need to insert into the Visited set at the same time we insert into the worklist. Otherwise we may end up pushing the same instruction to the worklist multiple times, and only adding it to the visited set later.
- Loading branch information