All loop passes should preserve all analyses in LoopAnalysisResults. Add checks for those. Note that due to PR44815, we don't check LAR's ScalarEvolution. Apparently calling SE.verify() can change its results. Only verify MSSA when VerifyMemorySSA, normally it's very expensive.
Details
Details
- Reviewers
asbirlea - Commits
- rG94c269baf583: [NewPM] Verify LoopAnalysisResults after a loop pass
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I wrote
https://bugs.llvm.org/show_bug.cgi?id=51020
about a case where the verifier finds something to complain about.
Comment Actions
The original reproducer in PR51020 used loop-unroll-full but I've found cases failing the same way with loop-reroll. I updated the PR with this case too.