carlo.bertolli added a comment. I have addressed some of the comments and restructured the code as requested. Let me know about further comments. Thanks for making this a better patch! Repository: rL LLVM http://reviews.llvm.org/D17170