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: [email protected]
          Reporter: [email protected]
                CC: [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to