[UnrollRuntime] Invalidate SCEVs for modified phis in ConnectEpilog.
authorFlorian Hahn <flo@fhahn.com>
Wed, 29 Jun 2022 17:26:00 +0000 (18:26 +0100)
committerFlorian Hahn <flo@fhahn.com>
Wed, 29 Jun 2022 17:26:00 +0000 (18:26 +0100)
commit9a35f19e3e851e5a62499416e276ff9ae13b7b07
treeaaad61c975050a1ec04fa2e07bb91236de7a5485
parentb70f507c75ac327eba895a970b507467a325f03b
[UnrollRuntime] Invalidate SCEVs for modified phis in ConnectEpilog.

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

Fix is analog to cfc741bc0e029.

Fixes #56282.
llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
llvm/test/Transforms/LoopUnroll/runtime-exit-phi-scev-invalidation.ll [new file with mode: 0644]