[LLVMbugs] [Bug 18572] New: llc crash during GenericScheduler::initPolicy()

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jan 21 07:39:22 PST 2014


            Bug ID: 18572
           Summary: llc crash during GenericScheduler::initPolicy()
           Product: new-bugs
           Version: trunk
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: stephen.montgomery333 at gmail.com
                CC: atrick at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

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

The attached .bc file, when compiled with:

llc -enable-misched foo.bc

causes a crash when the GenericScheduler's initPolicy() is called. The file was
compiled using clang for the MSP430 target which has only i8 and i16 registers.
The test in initPolicy(), which attempts to save compilation time by not
tracking register pressure for small regions, assumes that the target supports
i32 types. Since the MSP320 doesn't support them, getRegClassFor() throws an

I guess the fix is to use the largest integer type no greater than i32 that the
target supports, or something like that.

I was working with the LLVM 3.4 release when I noticed this. A quick inspection
suggests that the bug is still present on the trunk and has been present since
around revision 189,991.

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/20140121/f4175de7/attachment.html>

More information about the llvm-bugs mailing list