[llvm-bugs] [Bug 37293] New: [llvm-mca] crash when simulating AArch64 'falkor'

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Apr 30 07:17:17 PDT 2018


            Bug ID: 37293
           Summary: [llvm-mca] crash when simulating AArch64 'falkor'
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: spatel+llvm at rotateright.com
                CC: llvm-bugs at lists.llvm.org

I was hoping to compare llvm-mca's analysis with the comments in bug 37629, but
something bad happens when I specify 'falkor' as the CPU. But there's no
problem with 'kryo' apparently, so I suspect that llvm-mca itself needs to do
something to fix/avoid this problem in the CPU model? This is built from trunk

$ cat 37629.s
       fmov    d1, #0.50000000
       fmul    d0, d0, d1
       fneg    d1, d0
       stp     d0, d1, [x0]

$ ./llvm-mca 37629.s -mtriple=aarch64 -mcpu=falkor
Assertion failed: (isReady()), function selectNextInSequence, file
llvm/tools/llvm-mca/Scheduler.cpp, line 28.
Stack dump:
0.      Program arguments: ./llvm-mca 37629.s -mtriple=aarch64 -mcpu=falkor 
0  llvm-mca                 0x00000001022ed228
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
1  llvm-mca                 0x00000001022ed8a6 SignalHandler(int) + 422
2  libsystem_platform.dylib 0x00007fff7bd3cf5a _sigtramp + 26
3  libsystem_platform.dylib 0x00007ffeedcf61b0 _sigtramp + 1912312432
4  libsystem_c.dylib        0x00007fff7bada1ae abort + 127
5  libsystem_c.dylib        0x00007fff7baa21ac basename_r + 0
6  llvm-mca                 0x0000000101f1ee80
mca::ResourceManager::selectPipe(unsigned long long) + 448
7  llvm-mca                 0x0000000101f203c7
mca::ResourceManager::issueInstruction(mca::InstrDesc const&,
llvm::SmallVectorImpl<std::__1::pair<std::__1::pair<unsigned long long,
unsigned long long>, double> >&) + 215
8  llvm-mca                 0x0000000101f22327
mca::Scheduler::issueInstructionImpl(unsigned int, mca::Instruction&,
llvm::SmallVectorImpl<std::__1::pair<std::__1::pair<unsigned long long,
unsigned long long>, double> >&) + 39
9  llvm-mca                 0x0000000101f217a2
mca::Scheduler::issueInstruction(unsigned int, mca::Instruction&) + 210
10 llvm-mca                 0x0000000101f0e0fa
mca::DispatchUnit::dispatch(unsigned int, mca::Instruction*,
llvm::MCSubtargetInfo const&) + 506
11 llvm-mca                 0x0000000101f0abe1 mca::Backend::runCycle(unsigned
int) + 545

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/20180430/8cb90040/attachment.html>

More information about the llvm-bugs mailing list