llvm-project
llvm-project copied to clipboard
Assert in LegacyPassManager when adding PostDominatorTree to analysis pass
| Bugzilla Link | 30370 |
| Version | trunk |
| OS | All |
| Attachments | reproducer - created against svn revision 281213. |
Extended Description
When I add PostDominatorTree analysis pass to scalar-evolution (as a transitive requirement) the LegacyPassManager run into an assert: opt: ../lib/IR/LegacyPassManager.cpp:520: void llvm::PMTopLevelManager::setLastUser(llvm::ArrayRefllvm::Pass*, llvm::Pass*): Assertion `AnalysisPass && "Expected analysis pass to exist."' failed.
This looks like a bad interaction between the new PassManager and the LegacyPassManager.
To reproduce, use the attached patch on ScalarEvolution.cpp that only adds PostDominatorTree as a required pass and run using:
true | opt -loop-idiom -loop-unroll
This currently blocks my attempt to solve bug 28429.
Legacy PM is dead enough to ignore this