diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-03-21 12:45:51 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-03-22 14:34:29 +0100 |
commit | a63eaa5449fac237d492bd725a88fabf39881dc2 (patch) | |
tree | 69b728b7cf74578493ca1c4b9bda24b0074bd012 /llvm/lib/Analysis/ValueTracking.cpp | |
parent | c1bc56bf4f2bed66314c3c044af520d29b4683c5 (diff) | |
download | llvm-a63eaa5449fac237d492bd725a88fabf39881dc2.zip llvm-a63eaa5449fac237d492bd725a88fabf39881dc2.tar.gz llvm-a63eaa5449fac237d492bd725a88fabf39881dc2.tar.bz2 |
[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.
Diffstat (limited to 'llvm/lib/Analysis/ValueTracking.cpp')
0 files changed, 0 insertions, 0 deletions