[llvm-bugs] [Bug 31914] New: CopyFromReg with a use removed with -jump-is-expensive=false

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Feb 9 01:51:38 PST 2017


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

            Bug ID: 31914
           Summary: CopyFromReg with a use removed with
                    -jump-is-expensive=false
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: PowerPC
          Assignee: unassignedbugs at nondot.org
          Reporter: nemanja.i.ibm at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 17956
  --> https://llvm.org/bugs/attachment.cgi?id=17956&action=edit
Test case to reproduce the failure

Compiling the attached test case with -jump-is-expensive=false
-verify-machineinstrs illustrates the problem. Without -verify-machineinstrs,
it's a segfault in MachineCSE because the pass will get a definition of a vreg
from MachineRegisterInfo and dereference the returned null pointer.

This failure appears as of revision 292944 (https://reviews.llvm.org/rL292944).

To reproduce:
llc -verify-machineinstrs -jump-is-expensive=false
-mtriple=powerpc64le-unknown-unknown -mcpu=pwr8 crashWithCheapBranches.ll

-- 
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/20170209/387742de/attachment.html>


More information about the llvm-bugs mailing list