Running pass 'Greedy Register Allocator' leads to Segmentation fault (core dumped)

Hi,

I want to use LLVM 3.1 (with clang for the frontend) for compiling Open-MPI 1.6.3,
which is a message-passing library. But I get a segmentation fault by the "Greedy
Register Allocator".

There is the bug # 11756 that solves a similar problem, but the bugzilla says "Version 3.0",
and I am using 3.1 so it is likely a different bug that I am dealing with.

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

I believe the bug I am reporting is already reported in bug # 11969 when building
FreeBSD world:

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

Please just file a bug, and attach the files generated by the crash
logging mechanism. Don't worry about duplicates; it's much easier for
us to sort out what is a duplicate than it is for you.

-Eli

I filled a bug report and attached relevant files.

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