llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

Assert in LegacyPassManager when adding PostDominatorTree to analysis pass

Open cddouma-arm opened this issue 10 years ago • 1 comments

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.

cddouma-arm avatar Sep 13 '16 18:09 cddouma-arm

Legacy PM is dead enough to ignore this

arsenm avatar Aug 04 '23 23:08 arsenm