[SimpleLoopUnswitch] Forget loops before invalidating IR.
authorFlorian Hahn <flo@fhahn.com>
Wed, 1 Mar 2023 15:06:33 +0000 (16:06 +0100)
committerFlorian Hahn <flo@fhahn.com>
Wed, 1 Mar 2023 15:06:34 +0000 (16:06 +0100)
commit1bf8ae17f5e2714c8c87978fd2042896af3cd46d
treeeaca3798162e0e2c2fbb724bdc53092ebbaceaf3
parent3b742242a53ed0c2a2e1b6bb2352cace43c22030
[SimpleLoopUnswitch] Forget loops before invalidating IR.

Invalidate SCEV before adjusting switch instruction, so the IR remains
in a valid state for SCEV invalidation.
llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp