aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ValueTracking.cpp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-03-21 12:45:51 +0100
committerNikita Popov <nikita.ppv@gmail.com>2020-03-22 14:34:29 +0100
commita63eaa5449fac237d492bd725a88fabf39881dc2 (patch)
tree69b728b7cf74578493ca1c4b9bda24b0074bd012 /llvm/lib/Analysis/ValueTracking.cpp
parentc1bc56bf4f2bed66314c3c044af520d29b4683c5 (diff)
downloadllvm-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