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: unassignedb...@nondot.org
          Reporter: nemanja.i....@gmail.com
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to