[SimpleLoopUnswitch] Clear block and loop dispos after destroying loop.
authorFlorian Hahn <flo@fhahn.com>
Tue, 4 Oct 2022 09:27:52 +0000 (10:27 +0100)
committerFlorian Hahn <flo@fhahn.com>
Tue, 4 Oct 2022 09:27:52 +0000 (10:27 +0100)
commite399dd601f439ada0e505f380adf83d85d522f5a
tree537b26b3ae3aa0f7d936a83bd15b795400788f67
parent635f93dff7f07a58af4e8a7c915dfdb1852bb76b
[SimpleLoopUnswitch] Clear block and loop dispos after destroying loop.

SimpleLoopUnswitch may remove loops. Clear block and loop dispositions,
to clean up invalid entries in the cache.

Fixes #58136.
llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
llvm/test/Transforms/SimpleLoopUnswitch/invalidate-block-and-loop-dispositions.ll [new file with mode: 0644]