Currently load instructions are added to the cache for invariant pointer
group dependencies, but only pointer values are removed currently. That
leads to dangling AssertingVHs in the test case below, where we delete a
load from an invariant pointer group. We should also remove the entries
from the cache.
Fixes PR46054.
clang-tidy: warning: invalid case style for variable 'toRemoveIt' [readability-identifier-naming]
not useful