Hi Quentin, Mayur & list,
Please see the bug I filed for RegAllocGreedy: https://bugs.llvm.org/show_bug.cgi?id=38062
I found a discussion between yourselves about this on Google (though a few years old!) so thought it should be relevant to you.
It would be great if you could have a look.
Thanks very much,