[llvm-bugs] [Bug 32089] New: Assertion `EVT(Ins[i].VT) == InVals[i].getValueType() && "LowerFormalArguments emitted a value with the wrong type!"' failed.

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Feb 28 06:03:42 PST 2017


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

            Bug ID: 32089
           Summary: Assertion `EVT(Ins[i].VT) == InVals[i].getValueType()
                    && "LowerFormalArguments emitted a value with the
                    wrong type!"' failed.
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: mikael.holmen at ericsson.com
                CC: llvm-bugs at lists.llvm.org

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

build-all/bin/llc -O0 -march=hexagon -debug hex-i1-crash.ll

on

define void @g(i1 %cond) {
  ret void
}

gives

Args: build-all/bin/llc -O0 -march=hexagon -debug hex-i1-crash.ll 

Features:
CPU:hexagonv60

[SafeStack] Function: g
[SafeStack]     safestack is not requested for this function



=== g
llc: ../lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:8167: void
llvm::SelectionDAGISel::LowerArguments(const llvm::Function &): Assertion
`EVT(Ins[i].VT) == InVals[i].getValueType() && "LowerFormalArguments emitted a
value with the wrong type!"' failed.
#0 0x0000000001b38a64 PrintStackTraceSignalHandler(void*)
(build-all/bin/llc+0x1b38a64)
#1 0x0000000001b391d6 SignalHandler(int) (build-all/bin/llc+0x1b391d6)
#2 0x00007f46dfb15330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#3 0x00007f46de708c37 gsignal
/build/eglibc-oGUzwX/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#4 0x00007f46de70c028 abort
/build/eglibc-oGUzwX/eglibc-2.19/stdlib/abort.c:91:0
#5 0x00007f46de701bf6 __assert_fail_base
/build/eglibc-oGUzwX/eglibc-2.19/assert/assert.c:92:0
#6 0x00007f46de701ca2 (/lib/x86_64-linux-gnu/libc.so.6+0x2fca2)
#7 0x00000000019a7599 llvm::SelectionDAGISel::LowerArguments(llvm::Function
const&) (build-all/bin/llc+0x19a7599)
#8 0x00000000019f83f6
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&)
(build-all/bin/llc+0x19f83f6)
#9 0x00000000019f68fa
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(build-all/bin/llc+0x19f68fa)
#10 0x0000000000b6d911 (anonymous
namespace)::HexagonDAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(build-all/bin/llc+0xb6d911)
#11 0x00000000013a6b32
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(build-all/bin/llc+0x13a6b32)
#12 0x0000000001635de8 llvm::FPPassManager::runOnFunction(llvm::Function&)
(build-all/bin/llc+0x1635de8)
#13 0x0000000001636028 llvm::FPPassManager::runOnModule(llvm::Module&)
(build-all/bin/llc+0x1636028)
#14 0x0000000001636505 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(build-all/bin/llc+0x1636505)
#15 0x000000000068a679 compileModule(char**, llvm::LLVMContext&)
(build-all/bin/llc+0x68a679)
#16 0x00000000006876eb main (build-all/bin/llc+0x6876eb)
#17 0x00007f46de6f3f45 __libc_start_main
/build/eglibc-oGUzwX/eglibc-2.19/csu/libc-start.c:321:0
#18 0x000000000068590b _start (build-all/bin/llc+0x68590b)
Stack dump:
0.      Program arguments: build-all/bin/llc -O0 -march=hexagon -debug
hex-i1-crash.ll 
1.      Running pass 'Function Pass Manager' on module 'hex-i1-crash.ll'.
2.      Running pass 'Hexagon DAG->DAG Pattern Instruction Selection' on
function '@g'
Abort

If I remove "-debug" I don't get the assertion anymroe.

-- 
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/20170228/c522cc00/attachment.html>


More information about the llvm-bugs mailing list