[LLVMbugs] [Bug 15787] New: Assert in llvm::MachineRegisterInfo::clearVirtRegs: Vreg use list non-empty still

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Apr 18 15:41:40 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=15787

            Bug ID: 15787
           Summary: Assert in llvm::MachineRegisterInfo::clearVirtRegs:
                    Vreg use list non-empty still
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
          Assignee: unassignedbugs at nondot.org
          Reporter: hfinkel at anl.gov
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 10373
  --> http://llvm.org/bugs/attachment.cgi?id=10373&action=edit
bugpoint reduced test case

I may have found a bug in the register allocator. To see the bug, first apply
the attached patch (which makes the PPC optimizeCompareInst function more
aggressive than it should be), and then run the attached test case using:
-mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -- While applying the patch
will make optimizeCompareInst make a transformation that it can't guarantee is
legal, I don't think that the register allocator should care about that.

It currently asserts like this:
llc: llvm-trunk/lib/CodeGen/MachineRegisterInfo.cpp:111: void
llvm::MachineRegisterInfo::clearVirtRegs(): Assertion
`VRegInfo[TargetRegisterInfo::index2VirtReg(i)].second == 0 && "Vreg use list
non-empty still?"' failed.

-- 
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/20130418/a55631f2/attachment.html>


More information about the llvm-bugs mailing list