[llvm-bugs] [Bug 30370] New: Assert in LegacyPassManager when adding PostDominatorTree to analysis pass

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Sep 13 09:47:15 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=30370

            Bug ID: 30370
           Summary: Assert in LegacyPassManager when adding
                    PostDominatorTree to analysis pass
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: Christof.Douma at arm.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 17255
  --> https://llvm.org/bugs/attachment.cgi?id=17255&action=edit
reproducer - created against svn revision 281213.

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::ArrayRef<llvm::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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160913/67fa1931/attachment.html>


More information about the llvm-bugs mailing list