[NewPM] Verify LoopAnalysisResults after a loop pass
authorArthur Eubanks <aeubanks@google.com>
Fri, 19 Mar 2021 21:30:48 +0000 (14:30 -0700)
committerArthur Eubanks <aeubanks@google.com>
Fri, 19 Mar 2021 21:56:37 +0000 (14:56 -0700)
commita17394dc88cccc669b8c16f8ba8f40f546dafc1b
tree275269fe1ddcc65e138f33bd0704ade0b1e175dd
parent4773dd5ba9993e127586a5e5b1993d431a47372c
[NewPM] Verify LoopAnalysisResults after a loop pass

All loop passes should preserve all analyses in LoopAnalysisResults. Add
checks for those when the checks are enabled (which is by default with
expensive checks on).

Note that due to PR44815, we don't check LAR's ScalarEvolution.
Apparently calling SE.verify() can change its results.

This is a reland of https://reviews.llvm.org/D98820 which was reverted
due to unacceptably large compile time regressions in normal debug
builds.
llvm/lib/Transforms/Scalar/LoopPassManager.cpp