[llvm-bugs] [Bug 33884] New: Assertion failed: ((LIS.hasInterval(Reg) && !LIS.getInterval(Reg).empty()) && "Reg with empty interval has reference"), function reMaterializeAll

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jul 21 17:00:22 PDT 2017


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

            Bug ID: 33884
           Summary: Assertion failed: ((LIS.hasInterval(Reg) &&
                    !LIS.getInterval(Reg).empty()) && "Reg with empty
                    interval has reference"), function reMaterializeAll
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Register Allocator
          Assignee: unassignedbugs at nondot.org
          Reporter: Matthew.Arsenault at amd.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 18831
  --> https://bugs.llvm.org/attachment.cgi?id=18831&action=edit
Testcase

Ran into this similar testcase while reducing bug 33620

* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
  * #0: 0x00007fffe62bad42 __pthread_kill  + 10
    #1: 0x00007fffe63a8457 pthread_kill  + 90
    #2: 0x00007fffe6220420 abort  + 129
    #3: 0x00007fffe61e7893 __assert_rtn  + 320
    #4: 0x0000000101de7ae7 (anonymous
namespace)::InlineSpiller::reMaterializeAll(this=0x00000001088090d0)  + 1719 at
InlineSpiller.cpp:646
    #5: 0x0000000101de5442 (anonymous
namespace)::InlineSpiller::spill(this=0x00000001088090d0,
edit=0x00007fff5fbfa950)  + 754 at InlineSpiller.cpp:1066
    #6: 0x00000001020f9153 (anonymous
namespace)::RAGreedy::selectOrSplitImpl(this=0x0000000108031600,
VirtReg=0x0000000108c01230, NewVRegs=0x00007fff5fbfae38,
FixedRegisters=0x00007fff5fbfac60, Depth=0)  + 2467 at RegAllocGreedy.cpp:2643
    #7: 0x00000001020ec6bb (anonymous
namespace)::RAGreedy::selectOrSplit(this=0x0000000108031600,
VirtReg=0x0000000108c01230, NewVRegs=0x00007fff5fbfae38)  + 107 at
RegAllocGreedy.cpp:2305
    #8: 0x00000001020ecb44 non-virtual thunk to (anonymous
namespace)::RAGreedy::selectOrSplit(this=0x0000000108031600,
VirtReg=0x0000000108c01230, NewVRegs=0x00007fff5fbfae38)  + 52 at
RegAllocGreedy.cpp:0
    #9: 0x00000001020d6ef6
llvm::RegAllocBase::allocatePhysRegs(this=0x0000000108031600)  + 662 at
RegAllocBase.cpp:108
    #10: 0x00000001020ec4e6 (anonymous
namespace)::RAGreedy::runOnMachineFunction(this=0x0000000108031600,
mf=0x0000000108a010f0)  + 2134 at RegAllocGreedy.cpp:2764
    #11: 0x0000000101f40e21
llvm::MachineFunctionPass::runOnFunction(this=0x0000000108031600,
F=0x0000000107f12858)  + 449 at MachineFunctionPass.cpp:62
    #12: 0x00000001024c533f
llvm::FPPassManager::runOnFunction(this=0x0000000108805220,
F=0x0000000107f12858)  + 399 at LegacyPassManager.cpp:1514
    #13: 0x00000001024c5845
llvm::FPPassManager::runOnModule(this=0x0000000108805220, M=0x0000000107f11ef0)
 + 117 at LegacyPassManager.cpp:1535
    #14: 0x00000001024c6614 (anonymous
namespace)::MPPassManager::runOnModule(this=0x0000000108a00250,
M=0x0000000107f11ef0)  + 2196 at LegacyPassManager.cpp:1591
    #15: 0x00000001024c5b06
llvm::legacy::PassManagerImpl::run(this=0x000000010a000000,
M=0x0000000107f11ef0)  + 342 at LegacyPassManager.cpp:1694
    #16: 0x00000001024c7341
llvm::legacy::PassManager::run(this=0x00007fff5fbfc3c8, M=0x0000000107f11ef0) 
+ 33 at LegacyPassManager.cpp:1725
    #17: 0x000000010000a874 compileModule(argv=0x00007fff5fbfef18,
Context=0x00007fff5fbfeaf8)  + 23108 at llc.cpp:617
    #18: 0x00000001000040f1 main(argc=9, argv=0x00007fff5fbfef18)  + 2977 at
llc.cpp:358
    #19: 0x00007fffe618c235 start  + 1
    #20: 0x00007fffe618c235 start  + 1

-- 
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/20170722/87bf7eb3/attachment.html>


More information about the llvm-bugs mailing list