[llvm-bugs] [Bug 33677] New: after fast regalloc: *** Bad machine code: Using an undefined physical register ***

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jul 3 00:54:24 PDT 2017


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

            Bug ID: 33677
           Summary: after fast regalloc: *** Bad machine code: Using an
                    undefined physical register ***
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Register Allocator
          Assignee: unassignedbugs at nondot.org
          Reporter: paulsson at linux.vnet.ibm.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 18744
  --> https://bugs.llvm.org/attachment.cgi?id=18744&action=edit
reduced testcase

bin/llc -verify-machineinstrs -regalloc=fast

BB#6: 
    Predecessors according to CFG: BB#3
        %vreg9:subreg_hl32<def> = COPY %vreg9:subreg_l32; GR128Bit:%vreg9
        %vreg17<def> = COPY %vreg9:subreg_l64; GR64Bit:%vreg17 GR128Bit:%vreg9
        J <BB#5>
    Successors according to CFG: BB#5(?%)

->

# After Fast Register Allocator
BB#6: 
    Predecessors according to CFG: BB#3
        %R0Q<def> = L128 <fi#0>, 0, %noreg; mem:LD16[FixedStack0](align=8)
        %R0L<def> = COPY %R1L, %R0Q<imp-use,kill>
        %R2D<def> = COPY %R1D
        ST128 %R0Q<kill>, <fi#0>, 0, %noreg; mem:ST16[FixedStack0](align=8)
        STG %R2D<kill>, <fi#1>, 0, %noreg; mem:ST8[FixedStack1]
        J <BB#5>
    Successors according to CFG: BB#5(?%)

*** Bad machine code: Using an undefined physical register ***
- function:    main
- basic block: BB#6  (0x432b5cb0)
- instruction: %R2D<def> = COPY
- operand 1:   %R1D

-- 
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/20170703/bde4fd9e/attachment.html>


More information about the llvm-bugs mailing list