[LoopSimplifyCFG] Clear SCEV dispositions when removing dead blocks.
authorFlorian Hahn <flo@fhahn.com>
Mon, 10 Oct 2022 17:08:34 +0000 (18:08 +0100)
committerFlorian Hahn <flo@fhahn.com>
Mon, 10 Oct 2022 17:08:35 +0000 (18:08 +0100)
commit4b6bd1c9d56909b3f25b8dc3ea5b49e0b32d107a
tree7104d0e58011e99d34a6805b85418d1cac2b807f
parent83c65fbc2842909444bfe0a74ed083d164381078
[LoopSimplifyCFG] Clear SCEV dispositions when removing dead blocks.

When removing loops & blocks we also need to clear the SCEV dispositions
as they may now contain incorrect values.

Fixes #58262.
llvm/lib/Transforms/Scalar/LoopSimplifyCFG.cpp
llvm/test/Transforms/LoopSimplifyCFG/invalidate-scev-dispositions-2.ll [new file with mode: 0644]