[VectorUtils] Use early_inc_range instead of DelSet (NFC).
authorFlorian Hahn <flo@fhahn.com>
Mon, 20 Apr 2020 15:03:21 +0000 (16:03 +0100)
committerFlorian Hahn <florian_hahn@apple.com>
Mon, 20 Apr 2020 15:36:26 +0000 (16:36 +0100)
commit2737362e7a94a85c959d9e50877ea3efb83927c6
treef8ea50316f59c87012863864a5c44675fcd19f04
parentee12edcb76423c78b55cdddae2edfe45cbb2ccd6
[VectorUtils] Use early_inc_range instead of DelSet (NFC).

DelSet was used to avoid invalidating the current iterator while
modifying the map we are iterating over.

By using an early_inc_range, (which increments to iterator 'early',
allowing us to remove the current element), we can get rid of DelSet.

Reviewers: gilr, rengolin, Ayal, hsaito

Reviewed By: Ayal

Differential Revision: https://reviews.llvm.org/D78420
llvm/lib/Analysis/VectorUtils.cpp