http://llvm.org/bugs/show_bug.cgi?id=11004

           Summary: Crash in llc for ARM (infinite recursion in
                    LegalizeOp)
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: llc
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Created an attachment (id=7347)
 --> (http://llvm.org/bugs/attachment.cgi?id=7347)
Minimal example

The attached bitcode causes a crash in ARM llc.

LegalizeOp enters infinite recursion. The problem might be a nested CALLSEQ in
the DAG.

Compile with:
$ llc -march=arm -mcpu=cortex-a8 -mtriple=armv7-none-linux-gnueabi minimal.ll
-o minimal.s

--------

target triple = "armv7-none-linux-gnueabi"

%st = type { i8, i8 }

define void @foo() noreturn nounwind {
  %1 = alloca %st, align 1
  %2 = call i32 @bar(i32 undef, i32 undef, i32 undef, i32 undef, %st* byval %1)
nounwind
  unreachable
}

declare i32 @bar(i32, i32, i32, i32, %st* byval) nounwind

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to