[llvm-bugs] [Bug 39626] New: opt crashes with "-early-cse-memssa -early-cse-memssa" for any input

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Nov 10 21:48:12 PST 2018


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: unassignedbugs at nondot.org
          Reporter: cszide at 163.com
                CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181111/af8c65df/attachment-0001.html>


More information about the llvm-bugs mailing list