[LoopPeel] Forget SCEV for updated exit phi values.
authorFlorian Hahn <flo@fhahn.com>
Mon, 20 Jun 2022 11:19:27 +0000 (13:19 +0200)
committerFlorian Hahn <flo@fhahn.com>
Mon, 20 Jun 2022 11:19:27 +0000 (13:19 +0200)
commitcfc741bc0e029e931e9188a201de0567b00bc0fd
treefa3f97aceb43328ea29fcb65b37414beb615412a
parent03036061c7716f88cef32ebe16f2c10307383ef8
[LoopPeel] Forget SCEV for updated exit phi values.

LoopPeel add new incoming values to exit phi nodes which can change the
SCEV for the phi after 20d798bd47ec51.

Forget SCEVs for such phis.

Fixes #56044.

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D128164
llvm/lib/Transforms/Utils/LoopPeel.cpp
llvm/test/Transforms/LoopUnroll/scevunroll.ll