[SCEV][NFC] Win some compile time from mass forgetMemoizedResults
authorMax Kazantsev <mkazantsev@azul.com>
Mon, 25 Oct 2021 07:09:41 +0000 (14:09 +0700)
committerMax Kazantsev <mkazantsev@azul.com>
Mon, 25 Oct 2021 07:09:41 +0000 (14:09 +0700)
commitf8623b078305953c7be85fb385713b6851068940
treeaa6f5f637633f6c1334d7cd554cc68e61c7feb0d
parentdbab339ea44e812fb4deb669ce70001e99c2d2c9
[SCEV][NFC] Win some compile time from mass forgetMemoizedResults

Mass forgetMemoizedResults can be done more efficiently than bunch
of individual invocations of helper because we can traverse maps being
updated just once, rather than doing this for each invidivual SCEV.

Should be NFC and supposedly improves compile time.

Differential Revision: https://reviews.llvm.org/D112294
Reviewed By: reames
llvm/lib/Analysis/ScalarEvolution.cpp