[llvm-bugs] [Bug 47483] New: [Early Machine LICM] Bad machine code: Virtual register killed in block, but needed live out.

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Sep 10 05:16:59 PDT 2020


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

            Bug ID: 47483
           Summary: [Early Machine LICM] Bad machine code: Virtual
                    register killed in block, but needed live out.
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Common Code Generator Code
          Assignee: unassignedbugs at nondot.org
          Reporter: paulsson at linux.vnet.ibm.com
                CC: llvm-bugs at lists.llvm.org

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

llc -mcpu=z13 -O3 tc_mver_vregkilled_neededliveout.ll
-sink-insts-to-avoid-spills -verify-machineinstrs

*** Bad machine code: Virtual register killed in block, but needed live out.
***
- function:    main
- basic block: %bb.3 bb5 (0x677c338)
Virtual register %5 is used after the block.
LLVM ERROR: Found 1 machine code errors.

An LLGCR instruction with a killed vreg %5 is moved *into* the loop without the
kill flag being cleared...

-- 
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/20200910/1dd8060e/attachment-0001.html>


More information about the llvm-bugs mailing list