[all-commits] [llvm/llvm-project] 273736: [VectorUtils] Use early_inc_range instead of DelSe...
Florian Hahn via All-commits
all-commits at lists.llvm.org
Mon Apr 20 08:38:02 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 2737362e7a94a85c959d9e50877ea3efb83927c6
https://github.com/llvm/llvm-project/commit/2737362e7a94a85c959d9e50877ea3efb83927c6
Author: Florian Hahn <flo at fhahn.com>
Date: 2020-04-20 (Mon, 20 Apr 2020)
Changed paths:
M llvm/lib/Analysis/VectorUtils.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list