[LLVMbugs] [Bug 13270] New: llc bug in greedy regalloc for arm target

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jul 4 08:33:19 PDT 2012


             Bug #: 13270
           Summary: llc bug in greedy regalloc for arm target
           Product: new-bugs
           Version: 3.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: babslachem at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 8828
  --> http://llvm.org/bugs/attachment.cgi?id=8828
ll file to reproduce problem

When disabling promote elements pass, attached code fails with following

# End machine code for function test_kernel.

*** Bad machine code: Using an undefined physical register ***
- function:    test_kernel
- basic block: L.entry 0x3275870 (BB#0)
- instruction: %S17<def> = VMOVSR %R0<kill>, pred:14, pred:%noreg,
%D8<imp-def>, %Q4<imp-use,kill>, %Q4<imp-def>
- operand 5:   %Q4<imp-use,kill>
LLVM ERROR: Found 1 machine code errors.

This happens with llc 3.1 using following command line:

llc regalloc.ll -march=arm -mcpu=cortex-a9 -promote-elements=0
-mattr=+neon,+neonfp -relocation-model=pic -o regalloc.s

Now if I use pbqp regalloc it works.

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.

More information about the llvm-bugs mailing list