[SCEV][NFC] Introduce API for mass forgetMemoizedResults query
authorMax Kazantsev <mkazantsev@azul.com>
Mon, 25 Oct 2021 06:32:53 +0000 (13:32 +0700)
committerMax Kazantsev <mkazantsev@azul.com>
Mon, 25 Oct 2021 06:49:31 +0000 (13:49 +0700)
commita6096b7f9ed36ccd8e8670fa1e5898b3ef271f1f
treef4e5da2ab77f490ac08aacda2a1137fda8068b6b
parenta27ae8aa20f4ca4ce14f13c8bf05a2612994a9bc
[SCEV][NFC] Introduce API for mass forgetMemoizedResults query

This patch changes signature of forgetMemoizedResults to be able to work with
multiple SCEVs. Usage will come in follow-ups. We also plan to optimize it in the
future to work faster than individual invalidation updates. Should not change
behavior in any sense.

Split-off from D111602.

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