[SCEV] Simplify backedge count clearing (NFC)
authorNikita Popov <nikita.ppv@gmail.com>
Sat, 1 May 2021 15:40:26 +0000 (17:40 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Sat, 1 May 2021 15:50:01 +0000 (17:50 +0200)
commitcc58e8918b70d5698ec06c0b6e4c6e4c27971870
tree98fb4f26f4d969cd3f88e335e1fcab0a6a1c11b5
parentffa5a402a93bcd3aa08a9ff97765f2a056829939
[SCEV] Simplify backedge count clearing (NFC)

This seems to be a leftover from when the BackedgeTakenInfo
stored multiple exit counts with manual memory management. At
some point this was switchted to a simple vector, and there should
be no need to micro-manage the clearing anymore. We can simply
drop the loop from the map and the the destructor do its job.
llvm/include/llvm/Analysis/ScalarEvolution.h
llvm/lib/Analysis/ScalarEvolution.cpp