[NFC][MemDep] Remove unnecessary Worklist.clear

This execution path leads to return 'false' where the Worklist
will be deallocated anyways. No need to clear it separately.
This commit is contained in:
Max Kazantsev 2022-06-03 12:31:06 +07:00
parent 24e16e4af2
commit 8555e59a71
1 changed files with 0 additions and 1 deletions

View File

@ -1195,7 +1195,6 @@ bool MemoryDependenceResults::getNonLocalPointerDepFromBB(
// If we do process a large number of blocks it becomes very expensive and
// likely it isn't worth worrying about
if (Result.size() > NumResultsLimit) {
Worklist.clear();
// Sort it now (if needed) so that recursive invocations of
// getNonLocalPointerDepFromBB and other routines that could reuse the
// cache value will only see properly sorted cache arrays.