[Polly] Invalidate passes after Scop processing in NewPM.
authorMichael Kruse <llvm-project@meinersbur.de>
Sun, 14 Feb 2021 22:35:48 +0000 (16:35 -0600)
committerMichael Kruse <llvm-project@meinersbur.de>
Sun, 14 Feb 2021 23:32:29 +0000 (17:32 -0600)
commitd09491895f8cd9fdc8ca4cdf45f30d4c2e3066a6
treeac9f73a45e8ad1325a4fb34484700ee172239e12
parent97a1cdb15618966f786404bcfcac08f52a695f55
[Polly] Invalidate passes after Scop processing in NewPM.

ScopDetection's DetectionContext holds AssertionVH for
RequiredInvariantLoads. An assertion is thrown if the handle's value is
erased and the ScopDetection is not yet invalidated. The ScopDetection
must remain valid durting the ScopPassManager. Enusure that all Scop
analyses are free'd when the ScopPass manager is done.

If IR generation has happened, also invalidate all other passes to avoid
possible issues because, like for the legacy pass manager, Polly does not
yet perfectly preserve them.
polly/include/polly/ScopPass.h