[llvm-bugs] [Bug 47844] New: 'Assertion `ResultPass && "getAnalysis*() called on an analysis that was not " "'required' by pass!"' failed.' with "opt -memoryssa -gvn -licm -float2int -slp-vectorizer"

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Oct 14 07:02:25 PDT 2020


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

            Bug ID: 47844
           Summary: 'Assertion `ResultPass && "getAnalysis*() called on an
                    analysis that was not " "'required' by pass!"'
                    failed.' with "opt -memoryssa -gvn -licm -float2int
                    -slp-vectorizer"
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Core LLVM classes
          Assignee: unassignedbugs at nondot.org
          Reporter: suochenyao at 163.com
                CC: llvm-bugs at lists.llvm.org

OS and Platform:
CentOS Linux release 7.8.2003 (Core), x86_64 GNU/Linux
*******************************************************************************
Program:
int main() {return 0;}
*******************************************************************************
Clang Version:
$ clang -v
clang version 12.0.0 (/home/suocy/src/llvm-dev/llvm-project/llvm/tools/clang
568035ac3955790aee2a5dbc2b1f4074c76bb4d7)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/suocy/bin/llvm-dev/bin
Found candidate GCC installation:
/opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7
Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/4.8.2
Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/4.8.5
Selected GCC installation:
/opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: .;@m64
*******************************************************************************
Command Lines:
$ clang -O3 -mllvm -disable-llvm-optzns -c -emit-llvm a.c -o a.bc
$ opt -memoryssa -gvn -licm -float2int -slp-vectorizer  a.bc -o a.opt.bc
opt:
/home/suocy/src/llvm-dev/llvm-project/llvm/include/llvm/PassAnalysisSupport.h:239:
AnalysisType& llvm::Pass::getAnalysisID(llvm::AnalysisID) const $with
AnalysisType = llvm::BasicAAWrapperPass; llvm::AnalysisID = const void*]:
Assertion `ResultPass && "getAnalysis*() called on an analysis that was n$t "
"'required' by pass!"' failed.
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace.
Stack dump:
0.      Program arguments: /home/suocy/bin/llvm-dev/bin/opt -memoryssa -gvn
-licm -float2int -slp-vectorizer a.bc -o a.opt.bc
1.      Running pass 'Function Pass Manager' on module 'a.bc'.
2.      Running pass 'Function Alias Analysis Results' on function '@main'
 #0 0x00000000029d923c llvm::sys::PrintStackTrace(llvm::raw_ostream&, int)
(/home/suocy/bin/llvm-dev/bin/opt+0x29d923c)
 #1 0x00000000029d71e4 llvm::sys::RunSignalHandlers()
(/home/suocy/bin/llvm-dev/bin/opt+0x29d71e4)
 #2 0x00000000029d7343 SignalHandler(int)
(/home/suocy/bin/llvm-dev/bin/opt+0x29d7343)
 #3 0x00007ffa57056630 __restore_rt (/lib64/libpthread.so.0+0xf630)
 #4 0x00007ffa55c44387 raise (/lib64/libc.so.6+0x36387)
 #5 0x00007ffa55c45a78 abort (/lib64/libc.so.6+0x37a78)
 #6 0x00007ffa55c3d1a6 __assert_fail_base (/lib64/libc.so.6+0x2f1a6)
 #7 0x00007ffa55c3d252 (/lib64/libc.so.6+0x2f252)
 #8 0x0000000001951c45
llvm::AAResultsWrapperPass::runOnFunction(llvm::Function&)
(/home/suocy/bin/llvm-dev/bin/opt+0x1951c45)
 #9 0x000000000223b7e8 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/home/suocy/bin/llvm-dev/bin/opt+0x223b7e8)
#10 0x000000000223c289 llvm::FPPassManager::runOnModule(llvm::Module&)
(/home/suocy/bin/llvm-dev/bin/opt+0x223c289)
#11 0x000000000223b093 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/home/suocy/bin/llvm-dev/bin/opt+0x223b093)
#12 0x000000000071ee5e main (/home/suocy/bin/llvm-dev/bin/opt+0x71ee5e)
#13 0x00007ffa55c30555 __libc_start_main (/lib64/libc.so.6+0x22555)
#14 0x00000000007cfb75 _start (/home/suocy/bin/llvm-dev/bin/opt+0x7cfb75)
Aborted

-- 
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/20201014/bf520ba7/attachment-0001.html>


More information about the llvm-bugs mailing list