[llvm-bugs] [Bug 37984] New: [GlobalISel] Assertion failure in IRTranslator when translating ExtractValue

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jun 28 23:02:34 PDT 2018


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

            Bug ID: 37984
           Summary: [GlobalISel] Assertion failure in IRTranslator when
                    translating ExtractValue
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: GlobalISel
          Assignee: unassignedbugs at nondot.org
          Reporter: tstellar at redhat.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 20493
  --> https://bugs.llvm.org/attachment.cgi?id=20493&action=edit
Reduced test case

The attached test case triggers an assertion failure when using GlobalIsel:


$ ./llc -global-isel < gisel-crash.ll 
        .text
        .file   "<stdin>"
llc: llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp:141:
IRTranslator::ValueToVRegInfo::VRegListT
&llvm::IRTranslator::allocateVRegs(const llvm::Value &): Assertion
`!VMap.contains(Val) && "Value already allocated in VMap"' failed.
Stack dump:
0.      Program arguments: ./llc -global-isel 
1.      Running pass 'Function Pass Manager' on module '<stdin>'.
llvm-build/bin/../lib/libLLVM-7svn.so(+0x929f14)[0x7fc0fe4d9f14]
llvm-build/bin/../lib/libLLVM-7svn.so(_ZN4llvm3sys17RunSignalHandlersEv+0x50)[0x7fc0fe4d8210]
llvm-build/bin/../lib/libLLVM-7svn.so(+0x92a0c2)[0x7fc0fe4da0c2]
/lib64/libpthread.so.0(+0xf370)[0x7fc0fd9a3370]
/lib64/libc.so.6(gsignal+0x37)[0x7fc0fcde81d7]
/lib64/libc.so.6(abort+0x148)[0x7fc0fcde98c8]
/lib64/libc.so.6(+0x2e146)[0x7fc0fcde1146]
/lib64/libc.so.6(+0x2e1f2)[0x7fc0fcde11f2]
llvm-build/bin/../lib/libLLVM-7svn.so(_ZN4llvm12IRTranslator13allocateVRegsERKNS_5ValueE+0x2ba)[0x7fc0fec73c0a]
llvm-build/bin/../lib/libLLVM-7svn.so(_ZN4llvm12IRTranslator21translateExtractValueERKNS_4UserERNS_16MachineIRBuilderE+0x14f)[0x7fc0fec776bf]
llvm-build/bin/../lib/libLLVM-7svn.so(_ZN4llvm12IRTranslator9translateERKNS_11InstructionE+0x318)[0x7fc0fec7d878]
llvm-build/bin/../lib/libLLVM-7svn.so(_ZN4llvm12IRTranslator20runOnMachineFunctionERNS_15MachineFunctionE+0xb28)[0x7fc0fec7ea68]
llvm-build/bin/../lib/libLLVM-7svn.so(_ZN4llvm19MachineFunctionPass13runOnFunctionERNS_8FunctionE+0xb4)[0x7fc0fe7dffc4]
llvm-build/bin/../lib/libLLVM-7svn.so(_ZN4llvm13FPPassManager13runOnFunctionERNS_8FunctionE+0x257)[0x7fc0fe6084b7]
llvm-build/bin/../lib/libLLVM-7svn.so(_ZN4llvm13FPPassManager11runOnModuleERNS_6ModuleE+0x33)[0x7fc0fe608713]
llvm-build/bin/../lib/libLLVM-7svn.so(_ZN4llvm6legacy15PassManagerImpl3runERNS_6ModuleE+0x37b)[0x7fc0fe608c1b]

-- 
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/20180629/5fc13293/attachment.html>


More information about the llvm-bugs mailing list