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

            Bug ID: 39626
           Summary: opt crashes with "-early-cse-memssa -early-cse-memssa"
                    for any input
           Product: tools
           Version: 6.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: opt
          Assignee: unassignedb...@nondot.org
          Reporter: csz...@163.com
                CC: llvm-bugs@lists.llvm.org

opt crashed when the passes sequence contains the following four subsequences:
1. "-early-cse-memssa -lcssa-verification -early-cse-memssa"
2. "-early-cse-memssa -demanded-bits -early-cse-memssa"
3. "-early-cse-memssa -lcssa-verification -demanded-bits -early-cse-memssa"
4. "-early-cse-memssa -early-cse-memssa"

It has been tested using llvm 6.0 and the trunk version even for the "hello
world!" program.
"
#include<stdio.h>

int main()
{
    printf("hello world!");
    return 0;
}
“

For the debug version, the output of llvm 6.0 is:
Documents/llvm/llvm6.0/llvm-6.0.0.src/lib/IR/LegacyPassManager.cpp:529: void
llvm::PMTopLevelManager::setLastUser(llvm::ArrayRef<llvm::Pass*>, llvm::Pass*):
Assertion `AnalysisPass && "Expected analysis pass to exist."' failed. 

and the output of trunk version is:
/Documents/llvm/llvm/lib/IR/LegacyPassManager.cpp:586: void
llvm::PMTopLevelManager::setLastUser(llvm::ArrayRef<llvm::Pass*>, llvm::Pass*):
Assertion `AnalysisPass && "Expected analysis pass to exist."' failed.

I have used bugpoint to narrow down the problem, and it shows that the primary
reason is the fourth subsequence "-early-cse-memssa -early-cse-memssa".

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to